3 ms·
The documentation seems to claim[1] otherwise: It also allows the direct binding of events to: * A handler method in the same or another object. * A
by ptx 9y ago
The documentation seems to claim[1] otherwise:
It also allows the direct binding of events to:
* A handler method in the same or another object.
* An ordinary function like a static method or a global function.
* An arbitrary callable object.
If it works for arbitrary callable objects it should certainly work for closures.
[1] https://docs.wxpython.org/events_overview.html https://docs.wxpython.org/events_overview.html