wx.lib.agw.flatmenu.FocusHandler¶
A focus event handler.
Class Hierarchy¶
Known Superclasses¶
Methods Summary¶
Default class constructor. |
|
Handles the |
|
Handles the |
|
Sets the listener menu. |
Class API¶
- class FocusHandler(wx.EvtHandler)¶
A focus event handler.
Methods¶
- __init__(self, menu)¶
Default class constructor.
- Parameters:
menu – an instance of
FlatMenufor which we want to redirect focus inputs.
- OnKeyDown(self, event)¶
Handles the
wx.EVT_KEY_DOWNevent forFocusHandler.- Parameters:
event – a
KeyEventevent to be processed.
- OnKillFocus(self, event)¶
Handles the
wx.EVT_KILL_FOCUSevent forFocusHandler.- Parameters:
event – a
FocusEventevent to be processed.