PyQt4 strangeness

Jeremy Sanders jeremy+complangpython at
Tue Jan 23 12:54:26 CET 2007

Tina I wrote:

> self.connect(self.ui.testButton, QtCore.SIGNAL("clicked()"),
> self.doSomething)
> Anyone know why this is? Or am I missing something very basic here? (I'm
> still very much a noob I guess)

If you want to import both you can do something like:

import PyQt4.Qt as Qt

which imports QtCore and QtGui


Jeremy Sanders

More information about the Python-list mailing list