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/CAD%3DwhWOkpoEQFDo7Q4XB3Gv6GL4v%3D9-Yk47%3D1M%3DEDDWGRhA-uQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to