>
> I am a windows 7 64 bit user, using Python 2.7.3 (default, Apr 10 2012, 
> 23:24:47) [MSC v.1500 64 bit (AMD64)]   I have PyQT4 and the rest of the 
> required installs and have been following the CMIVFX tutorial. When I enter 
> the same code as Justin, I get the same error. Have I missed a call to 
> something or is there a different way to get this working?


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)


QWidget: Must construct a QApplication before a QPaintDevice

I saw in a lter post that a mac user needed a call to iPython, but I am not 
using that version.

Thanks
 

>       
>

-- 
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/d2359aed-1c49-437a-a665-6a61608bde6e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to