Phoenix Logo

phoenix_title wx.lib.agw.flatmenu.MenuKbdRedirector

A keyboard event handler.


class_hierarchy Class Hierarchy

Inheritance diagram for class MenuKbdRedirector:


super_classes Known Superclasses

wx.EvtHandler


method_summary Methods Summary

__init__ Default class constructor.
ProcessEvent Processes the inout event.
SetMenu Sets the listener menu.

api Class API



class MenuKbdRedirector(wx.EvtHandler)

A keyboard event handler.


Methods



__init__(self, menu, oldHandler)

Default class constructor.

Parameters:
  • menu – an instance of FlatMenu for which we want to redirect keyboard inputs;
  • oldHandler – a previous (if any) EvtHandler associated with the menu.


ProcessEvent(self, event)

Processes the inout event.

Parameters:event – any kind of keyboard-generated events.


SetMenu(self, menu)

Sets the listener menu.

Parameters:menu – an instance of FlatMenu.