Maya 中的 PySide2 - 'module' 对象没有属性 'QPushButton'
PySide2 in Maya - 'module' object has no attribute 'QPushButton'
伙计们!
尝试学习适用于 Maya 2017 的 PySide,从第一步开始就已经有点令人沮丧了。
from PySide2 import QtGui
button = QtGui.QPushButton()
- 'module'对象没有属性'QPushButton'
有人知道吗?
试试这个方法:
from PySide2.QtWidgets import *
button = QPushButton("Hello World")
button.show()
按钮=QtWidgets.QPushButton()
伙计们! 尝试学习适用于 Maya 2017 的 PySide,从第一步开始就已经有点令人沮丧了。
from PySide2 import QtGui
button = QtGui.QPushButton()
- 'module'对象没有属性'QPushButton' 有人知道吗?
试试这个方法:
from PySide2.QtWidgets import *
button = QPushButton("Hello World")
button.show()
按钮=QtWidgets.QPushButton()