I am a windows 7 64 bit user, using Python 2.7.3 and am following the cmivfx 
tutorial:Pyqt4andMaya

When I enter the code:

from PyQt4 import QtGui
widget = QtGui.QWidget()
widget.resize(400,300)
widget.show()
widget.raise_()
#button = QTGui.QpushButton('Button')
#button.show()
#button.raise_()
button = QtGui.QPushButton('Button', parent = widget)
button.show()
button.move(30, 40)

I also get the error:

QWidget: Must construct a QApplication before a QPaintDevice


As the tut is on a mac, I have noticed a few things that I do not have as a 
windows user so what am I doing wrong? 

I am not using iPython. 


-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/4ea09bcd-ab56-41b0-b559-6fff02376f95%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to