Table Of Contents

Previous topic

FMRendererXP

Next topic

mcPopupWindow

This Page

phoenix_title FocusHandler

A focus event handler.


class_hierarchy Inheritance Diagram

Inheritance diagram for class FocusHandler

Inheritance diagram of FocusHandler


super_classes Known Superclasses

EvtHandler


method_summary Methods Summary

__init__ Default class constructor.
OnKeyDown Handles the EVT_KEY_DOWN event for FocusHandler.
OnKillFocus Handles the EVT_KILL_FOCUS event for FocusHandler.
SetMenu Sets the listener menu.

api Class API



class FocusHandler(EvtHandler)

A focus event handler.


Methods



__init__(self, menu)

Default class constructor.

Parameters:menu – an instance of FlatMenu for which we want to redirect focus inputs.


OnKeyDown(self, event)

Handles the EVT_KEY_DOWN event for FocusHandler.

Parameters:event – a KeyEvent event to be processed.


OnKillFocus(self, event)

Handles the EVT_KILL_FOCUS event for FocusHandler.

Parameters:event – a FocusEvent event to be processed.


SetMenu(self, menu)

Sets the listener menu.

Parameters:menu – an instance of FlatMenu.