我正在尝试选择一个对象并显示行编辑
from PySide import * from pymel import *
import pymel.core as pm import maya.cmds as cmds import maya.mel as mel import maya.OpenMaya as OpenMaya
def select_obj(obj):
list = pm.poly
print obj
button = QPushButton("select")
button.clicked.connect(select_obj)
button.show()
def desselect_obj(obj):
list = OpenMaya.MSelection()
print obj
button2 = QPushButton("disconnect")
button2.clicked.connect(select_obj)
button2.show()
edit = QLineEdit(nome)
QLineEdit.show(select_obj)
label.show()
app.exec_()
# Error: line 1: TypeError: file <maya console> line 25: 'PySide.QtGui.QLineEdit' called with wrong argument types:
PySide.QtGui.QLineEdit(function)
Supported signatures:
PySide.QtGui.QLineEdit(PySide.QtGui.QWidget = No`enter code here`ne)
PySide.QtGui.QLineEdit(unicode, PySide.QtGui.QWidget = None) #
# TypeError: select_obj() takes exactly 1 argument (0 given)