[PyQt] Re:PyQt Digest, Vol 39, Issue 27segmentation fault
lucaberto at libero.it
lucaberto at libero.it
Fri Oct 19 07:12:54 BST 2007
> Message: 9
> Date: Fri, 19 Oct 2007 01:21:26 +0200
> From: David Boddie <david at boddie.org.uk>
> Subject: Re: [PyQt] segmentation fault
> To: pyqt at riverbankcomputing.com
> Message-ID: <200710190121.26362.david at boddie.org.uk>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On Thursday 18 October 2007 11:17:36 +0200, lucaberto wrote:
>
> > Hello Again at all:
> > i get segmentation fault and i can't debug in this script:
>
> [...]
>
> > ? ? def file_information(self):
> > ? ? ? ? val = self.treeWidget.currentItem()
> > ? ? ? ? indice = self.treeWidget.indexFromItem(val, 0)
> >
> > in this instruction :
> >
> > indice = self.treeWidget.indexFromItem(val, 0)
>
> Can you tell us what "val" contains? Is it "None"?
>
> David
The value of val is:<PyQt4.QtGui.QTreeWidgetItem object at 0x2abf1e34ee20>
Regards
Luca
>
>
>
>
> ------------------------------
>
> Message: 10
> Date: Fri, 19 Oct 2007 00:39:11 -0300
> From: " Gustavo A. D?az " <gustavo.diaz at gmail.com>
> Subject: [PyQt] Using Xlib
> To: pyqt at riverbankcomputing.com
> Message-ID:
> <64c123920710182039s57114ff9laae5384565fd24ac at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi!!
>
> I am trying to do 2 things with my app window state:
>
> 1- Hide/disable the taskbar of the app.
> 2- Put the app window always behind every other applications (so lets say,
> to act as an desktop applet).
>
> So, i was digging a little about X server states and using xlib from python
> module, and i did this on my app:
>
> self.display = display.Display(":0")
> self.net_wm_state_skip_taskbar = self.display.intern_atom
> ("_NET_WM_STATE_SKIP_TASKBAR")
> self.net_wm_state_below = self.display.intern_atom ("_NET_WM_STATE_BELOW")
> self.net_wm_state = self.display.intern_atom("_NET_WM_STATE")
> self.display.screen().root.change_property(self.net_wm_state, Xatom.ATOM,
> 32, [self.net_wm_state_skip_taskbar,], X.PropModeAppend)
>
> Now, this has no absolute effect on my app. What is wrong?
>
> Thanks!
>
> Cheers.
>
> --
> Gustavo A. D?az
> GDNet Projects
> www.gdnet.com.ar
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20071019/1424a53a/attachment.html
>
> ------------------------------
>
> _______________________________________________
> PyQt mailing list
> PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
> End of PyQt Digest, Vol 39, Issue 27
> ************************************
>
More information about the PyQt
mailing list