On Tue, Jul 1, 2014 at 7:12 PM, 'Terry Brown' via leo-editor
<[email protected]> wrote:
> I've done some experiments and it seems that Qt can send its
> triggered(checked) signal to callables that accept zero or more
> arguments.

Thanks for this research.  The following remarks are based on:

http://qt-project.org/doc/qt-5/qabstractbutton.html#signals

The signature of the checked signal is::

   void clicked(bool checked = false)

so it seems that from the *python* point of view, the callback might
be called with either zero or one arguments.  This should be true
regardless of implementation.

The "checked" argument is not necessary because there is a checkState() getter.

My conclusions:

1. The callback's signature should match the documented signature, as
you have said previously.

2. It doesn't matter whether the callback is defined using lambda or
def, provided the signature is correct.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to