Re:WxPython 4.0.0 Released
by amelius on Thursday February 01, 2018 @12:54PM
(#16283977)
My biggest problem with wxpython is that you apparently can't set closures as event handlers. Instead, you have to define a member function, and register it. This makes the process a bit tedious compared to JavaScript.
[ Parent
| on HN ]
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.