You are most welcome, zoshua. Thanks for the kind words. :) And if anyone finds any oddities between PySide versus PyQt, we've got live documentation that is automatically tested for each commit. Feel free to add your oddity here, that way we can all stay on top of what to look out for when working with cross-compatible Qt software.
- https://github.com/mottosso/Qt.py/blob/master/CAVEATS.md On 1 August 2016 at 19:07, zoshua <[email protected]> wrote: > This is incredibly helpful! > > Thank you for providing this to the community! > > +j > > > > > On Monday, July 25, 2016 at 11:43:34 PM UTC-7, Fredrik Averpil wrote: >> >> Hello, >> >> Today, Maya 2017 was released. It comes with a bunch of changes, where >> one change is of particular interest to me as a Python developer; PySide >> has been replaced with PySide2 (as a result of Autodesk replacing Qt4 with >> Qt5). >> >> This essentially makes all PySide/PyQt scripts written for Maya version >> <= 2016 unusable in Maya 2017. >> >> To help fix this, and maintain backwards compatibility to previous >> versions of Maya, Marcus Ottosson and I created an open source project >> called Qt.py: >> https://github.com/mottosso/Qt.py >> >> By writing as if you were writing for PySide2, and using our shim instead >> of a specific Python binding, this simple example code works in Python 2 & >> 3 with either PySide, PyQt4, PySide2 or PyQt5: >> >> import sysfrom Qt import QtWidgets >> >> app = QtWidgets.QApplication(sys.argv) >> button = QtWidgets.QPushButton("Hello World") >> button.show() >> app.exec_() >> >> If you’re in the same boat as us, we’d love to hear what you think about >> this. >> >> To help get you started, here are two blog posts which outline how to use >> Qt.py: >> >> - >> >> Dealing with Maya 2017 and PySide2 >> >> <https://fredrikaverpil.github.io/2016/07/25/dealing-with-maya-2017-and-pyside2/> >> - >> >> Developing with Qt.py >> <https://fredrikaverpil.github.io/2016/07/25/developing-with-qt-py/> >> >> Regards, >> 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/4c5c0954-41ee-47b4-973a-ad6971e4ec5e%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/4c5c0954-41ee-47b4-973a-ad6971e4ec5e%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- *Marcus Ottosson* [email protected] -- 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/CAFRtmOAbu%2BNbKh_jNK05YbpFu12x7zJ7KcSPvzu4VPJ6GgGNHw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
