Chris Zubrigg provides a more practical example going a little bit further with using PySide in Maya and creates a simple tool for generating polygon primitives.

In this tutorial we will dive a little deeper into PySide by building a simple tool that generates polygon primitives in Maya

Autodesk added the PySide Libraries in Maya 2014 having access to the QT framework from within Python scripts.

Chris has had a previous look at using PySide in Maya, showing how to create a simple “hello world” window, showing how you are able to develop interfaces for scripts that are unified amongst Maya’s platforms and operating systems.

Here, Chris shows how to extend the QDialog class and add a layout, then make the connections using Signals and Slots.