First page Back Continue Last page Graphics
Event Handling
wxPython uses Dynamic Event Tables
- Built at run-time.
- Events can be “connected” to any callable object that will serve as the Event Handler:
- any method of the class, or other classes,
- standalone functions, or
- any object with a __call__ method.
- Handlers are connected to events with a set of helper functions:
- EVT_MENU,
- EVT_PAINT,
- EVT_SIZE, etc.