Hello Justin:
It's very nice of you for giving me those advise. I followed and
reinstalled my pyqt by brewhome.
now I can import PyQt4 and have found "pyuic4" and "pyrcc4"
but when I follow the example in the tutorial:
from PyQt4 import QtGui
widget = QtGui.QWidget()
widget.resize(400,300)
widget.show()
widget.raise_()
button = QtGui.QPushButton("Button")
button.show()
button.raise_()
button.deleteLater()
button = QtGui.QPushButton("button",parent=widget)
button.show()
button.raise_()
button.pos()
button.move(30,40)
widget.deleteLater
when I typed in the second line "widget = QtGui.QWidget()" in ipython
it returned me like downbelow:
QWidget: Must construct a QApplication before a QPaintDevice
Abort trap: 6
still I can work it out in mayapython.
As a freshman, I searched the web for solution, there are many suggestion about
"QWidget: Must construct a QApplication before a QPaintDevice", but still can't
I work it out.
Would you please give me some advise.
thank you
sincerely li
20130715
--
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 post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.