This is a duplicate of the other thread you posted, but ipython is not a
requirement. It is available on win/Mac/Linux and just makes it easier to
play around with Qt from the command line because it can start the event
loop for you.
See other thread for more details.
On Mar 13, 2014 4:03 AM, "Malcom Armstrong" <[email protected]>
wrote:

> 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<https://groups.google.com/d/msgid/python_inside_maya/d2359aed-1c49-437a-a665-6a61608bde6e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAPGFgA3U%2BQ%3DOjPLOV9iocXtWZRuM%2BcsdVz%2Be%3DKYx_MZM-CVSwA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to