> Message: 9 > Date: Fri, 19 Oct 2007 01:21:26 +0200 > From: David Boddie <[EMAIL PROTECTED]> > Subject: Re: [PyQt] segmentation fault > To: [email protected] > Message-ID: <[EMAIL PROTECTED]> > 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 " <[EMAIL PROTECTED]> > Subject: [PyQt] Using Xlib > To: [email protected] > Message-ID: > <[EMAIL PROTECTED]> > 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 > [email protected] > http://www.riverbankcomputing.com/mailman/listinfo/pyqt > > End of PyQt Digest, Vol 39, Issue 27 > ************************************ > _______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
