Trying to learn so PySide for Maya 2017 ('module' problem)

Trying to learn so PySide for Maya 2017 ('module' problem)

Anonymous
Not applicable
566 Views
1 Reply
Message 1 of 2

Trying to learn so PySide for Maya 2017 ('module' problem)

Anonymous
Not applicable

Trying to learn so PySide for Maya 2017 and from first step it was already a bit frustrating.
from PySide2 import QtGui

button = QtGui.QPushButton()

- 'module' object has no attribute 'QPushButton'

Anybody knows something about it ?

0 Likes
Accepted solutions (1)
567 Views
1 Reply
Reply (1)
Message 2 of 2

cheng_xi_li
Autodesk Support
Autodesk Support
Accepted solution

Hi,

 

Maya 2017 uses Qt5 so it is PySide2.

 

from PySide2 import QtWidgets
button = QtWidgets.QPushButton()

 

Yours,

Li

0 Likes