Hi Justin
i'm using standard Maya 2014 Pyside. guess is Qt4.8
and i get another error now:
# TypeError: commitData(QWidget*) only accepts 1 arguments, 3 given!
this is my full method in case something else is messing it:
def createEditor(self, parent , option, index):
self.container = QtGui.QWidget(parent)
layout = QtGui.QHBoxLayout()
layout.setAlignment(QtCore.Qt.AlignCenter | QtCore.Qt.AlignCenter)
layout.setContentsMargins(0, 0, 0, 0)
self.container.setLayout(layout)
self.checkBox = QtGui.QCheckBox(parent)
self.checkBox.toggled.connect(partial(self.commitData.emit, self))
layout.addWidget(self.checkBox)
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/a614dba8-300e-4e95-9aae-17f5f2d43cd2%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.