Quoting Andreas Pakulat <[EMAIL PROTECTED]>: > On 28.04.07 23:31:53, Pradnyesh Sawant wrote: > > Hello, > > I've written a small pyqt4 code, which on running on an ubuntu 6.10 > > system gives me the foll error: > > $ python2.4 updLbl.py > > Traceback (most recent call last): > > File "updLbl.py", line 1, in ? > > import PyQt4.Qt as qt > > This is wrong, you don't want to do that.
That is not wrong. It just forces him to have all the packages installed and it is never wrong if he builds PyQt4 himself because Qt.py would only try to import the modules he built. In his current situation he could even comment the "from PyQt4.QtOpenGL import *" line of Qt.py if he does not intend to use OpenGL. By other hand I find pretty convenient not to have to care about if a module or a constant comes from QtCore or from QtGui, specially if I am porting PyQt3 code to PyQt4 because minimizes changes. I guess that was one of the main motivations to have Qt.py as part of the standard installation. Afterwards it is just a question of taste :) Regards, Armando ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ _______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
