[PyKDE] Re: PyQt4, my approach was wrong before or now?

Phil Thompson phil at riverbankcomputing.co.uk
Sun Mar 5 14:37:43 GMT 2006


On Sunday 05 March 2006 2:29 pm, Gerard Vermeulen wrote:
> On Sun, 05 Mar 2006 14:41:10 +0100
>
> "V. Armando Sole" <sole at esrf.fr> wrote:
> > Hi!
> >
> > In order to be able to use the same code with PyQt3 and PyQt4, I had
> > written a small Qt4.py  wrapper to simplify simple cases.
> >
> > from PyQt4.QtCore import *
> > from PyQt4.QtGui import *
>
> There are two namespaces Qt: one in QtCore and one in QtGui.
> Qt.Vertical is part of QtCore, but this gets wiped out
> by your import: from PyQt4.QtGui import *

I'm working on reverting this at the moment.

Phil




More information about the PyQt mailing list