Me and Fredrik Averpil wrote this for our GUIs and figured we’d make it general enough for most things.
Let me know what you think.
Example

$ pip install Qt.py
$ python
>>> import sys
>>> from Qt import QtWidgets
>>> app = QtWidgets.QApplication(sys.argv)
>>> button = QtWidgets.QPushButton("Hello World")
>>> button.show()
>>> app.exec_()
Example project
--
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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOANqQ2MZiQdXGea7jmhCKK5Y%2BvTUwxuvKhMFc%2B99VR8sA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0f_D4oD7k9J%3DQ1Muw61bhdGvf6r_h8XcctsQ0zsyPBpQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAJhmvsSFeT_O6w4-tzbON4zwwr0OZWWt5RSnnSRWb4PhCWHAdw%40mail.gmail.com.
Do you think the helper library should try and set the sip api to v2 for PyQt4, if it can?
Justin, by sip API v2, do you mean this?
import sip
sip.setapi('QString', 2)
Cheers,
Fredrik
That was sent prematurely…
I meant to ask if it was enough to set API to v2 only for QString and QVariant, or if all of these should be set to v2:
import sip
sip.setapi(u'QDate', 2)
sip.setapi(u'QDateTime', 2)
sip.setapi(u'QString', 2)
sip.setapi(u'QTextStream', 2)
sip.setapi(u'QTime', 2)
sip.setapi(u'QUrl', 2)
sip.setapi(u'QVariant', 2)
// Fredrik
--
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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAD%3DwhWNCLViAB%3DrwXs0VY8rw9m6tme8xDt-ACH6NTXQ_O7Ws-w%40mail.gmail.com.
--
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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAD%3DwhWPXaUy_oHgAfqoahC8r0KAv0kRNLpSV70t7F6Os7cvwQA%40mail.gmail.com.