PyQt4 strangeness
Tina I
tinaweb at bestemselv.com
Tue Jan 23 05:31:20 EST 2007
I'm trying to 'convert' my self from Qt3 to Qt4 (it rocks!) and one
thing seem strange:
With Qt3 I usually did "from qt import *", but this does not seem to
work with Qt4. I have to use "from PyQt4 import QtGui , QtCore" and also
have to use "QtCore.something".
Like when connecting a button:
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)
I'm using the Debian packages by the way.
Thanks
Tina
More information about the Python-list
mailing list