Hi! thanks Nicolas. Now works in python ide, but in maya i got: # ImportError: No module named sip # I can't copy sip from site-packages in python25 because doesn't exists, sip folder are inside of PyQT folder. I installed PyQT 4.4.3. I'll install 4.2.3 (I installed QT 4.2.3) like autodesk says
Thanks again 2009/1/26 Nicolas DUMAY <[email protected]> > import PyQt4 as qt > sould be : > import PyQt4.QtGui as qt > i guess > > > Nicolas > > > 2009/1/26 Francis Vega <[email protected]> > > >> I've got this error msg in maya 2009 with the example code: >> >> Code: >> import sys >> import PyQt4 as qt >> app = qt.QApplication(sys.argv) >> hello = qt.QLabel("Hello world!",None) >> hello.show() >> >> Error in maya or python interpreter... >> Traceback (most recent call last): >> File "<pyshell#2>", line 1, in <module> >> app = qt.QApplication(sys.argv) >> AttributeError: 'module' object has no attribute 'QApplication' >> >> ¿? >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ Yours, Maya-Python Club Team. -~----------~----~----~----~------~----~------~--~---
