Sorry, I completely overlooked my mistake because of my food coma from
lunch...
It should really be more like:
checkbox.toggled.connect(partial(self.commitData.emit, self))
Normally when you connect a signal to another signal, Qt will see it and
automatically hook them up properly. But because I was using partial() here
as a wrapper, it was literally trying to call the signal like a function.
It needed the explicit emit() to be wrapped.
On Fri, Feb 21, 2014 at 1:31 PM, Justin Israel <[email protected]>wrote:
> What version of Qt are you using? I typed that from my phone :-)
> On Feb 21, 2014 8:09 AM, "Ricardo Viana" <[email protected]> wrote:
>
>> Its strange because i thought that could be a pyside thing but in the docs
>>
>> they document it as a method which takes the editor widget.
>>
>> PySide.QtGui.QAbstractItemDelegate.commitData(*editor*) Parameters:
>> *editor* -
>> PySide.QtGui.QWidget<http://srinikom.github.io/pyside-docs/PySide/QtGui/QWidget.html#PySide.QtGui.QWidget>
>>
>>
>>
>> pyside
>> docs<http://srinikom.github.io/pyside-docs/PySide/QtGui/QAbstractItemDelegate.html>
>>
>>
>>
>> --
>> 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/a0983908-8bdf-4039-9259-05555f1e78fc%40googlegroups.com
>> .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
--
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/CAPGFgA09HcH%3DNJaWgtC8SCqFJ-%3DNjgCmqLjPHnFYfFeTZKhY0w%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.