A focus event handler.
__init__ | Default class constructor. |
OnKeyDown | Handles the wx.EVT_KEY_DOWN event for FocusHandler. |
OnKillFocus | Handles the wx.EVT_KILL_FOCUS event for FocusHandler. |
SetMenu | Sets the listener menu. |
A focus event handler.
Default class constructor.
Parameters: | menu – an instance of FlatMenu for which we want to redirect focus inputs. |
---|
Handles the wx.EVT_KEY_DOWN event for FocusHandler.
Parameters: | event – a wx.KeyEvent event to be processed. |
---|
Handles the wx.EVT_KILL_FOCUS event for FocusHandler.
Parameters: | event – a wx.FocusEvent event to be processed. |
---|
Sets the listener menu.
Parameters: | menu – an instance of FlatMenu. |
---|