Re: [PyQt] Menu icons missing in Xfce

2011-12-07 Thread Hans-Peter Jansen
On Wednesday 07 December 2011, 10:10:39 Mark Summerfield wrote: > Hi, > > I have a Python 3/PyQt 4 application that has standard menus and > toolbars and works fine under GNOME 2 on Debian 6. However, on > Xubuntu (Xfce 4.8) the icons only show up in the toolbars not in the > menus. Yet other appli

Re: [PyQt] Subclass of QGraphicsObject does not have the correct class name listed in QGraphicsScene.items()

2011-12-07 Thread Luke Campagnola
Great, Thanks Phil! On Wed, Dec 7, 2011 at 07:56, Phil Thompson wrote: > On Mon, 5 Dec 2011 18:01:25 -0500, Luke Campagnola > > wrote: >> How about this: >> >> from PyQt4 import QtCore, QtGui >> import sip >> class GObject(QtGui.QGraphicsObject): >>     def boundingRect(self): >>         return

Re: [PyQt] Subclass of QGraphicsObject does not have the correct class name listed in QGraphicsScene.items()

2011-12-07 Thread Phil Thompson
On Mon, 5 Dec 2011 18:01:25 -0500, Luke Campagnola wrote: > How about this: > > from PyQt4 import QtCore, QtGui > import sip > class GObject(QtGui.QGraphicsObject): > def boundingRect(self): > return QtCore.QRectF(0, 0, 10, 10) > def paint(self, p, *args): > p.drawRect(sel

Re: [PyQt] setCornerWidget for QMenuBar & build Snapshots

2011-12-07 Thread Phil Thompson
On Wed, 07 Dec 2011 13:22:58 +0200, ad...@mbnoimi.net wrote: > On 06/12/2011 09:32 م, Phil Thompson wrote: Snapshots are only > provided as source packages I tried to build the snapshots as following but > I failed... could you please help me in building process? > > Build steps: > > * Dow

Re: [PyQt] setCornerWidget for QMenuBar & build Snapshots

2011-12-07 Thread admin
On 06/12/2011 09:32 م, Phil Thompson wrote: Snapshots are only provided as source packages I tried to build the snapshots as following but I failed... could you please help me in building process? Build steps: Downloaded sip-4.13.1-snapshot-82af71f0adcb

[PyQt] Menu icons missing in Xfce

2011-12-07 Thread Mark Summerfield
Hi, I have a Python 3/PyQt 4 application that has standard menus and toolbars and works fine under GNOME 2 on Debian 6. However, on Xubuntu (Xfce 4.8) the icons only show up in the toolbars not in the menus. Yet other applications (e.g., firefox, Archive Manager) have icons in their menus. Does a

[PyQt] Loose com pointer when open a qt window

2011-12-07 Thread Matteo Boscolo
Hi all, I need some help or idea to a com problem.. I got this class: class foo(object): def setComObject(comObject): self.comO=comObject #This is a com object from a cad application def showForm(self) # use the self.comO to read some information from the cad applicatio