Issue
guys! 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 ?
Solution
Try this method:
from PySide2.QtWidgets import *
button = QPushButton("Hello World")
button.show()
Answered By - Andy Jazz
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.