wx.NavigationKeyEvent¶This event class contains information about navigation events, generated by navigation keys such as tab and page down.
This event is mainly used by wxWidgets implementations. A wx.NavigationKeyEvent handler is automatically provided by wxWidgets when you enable keyboard navigation inside a window by inheriting it from NavigationEnabled<>.
^^
Events Emitted by this Class¶Handlers bound for the following event types will receive a wx.NavigationKeyEvent parameter.
EVT_NAVIGATION_KEY: Process a navigation key event. ^^
Class Hierarchy¶
Inheritance diagram for class NavigationKeyEvent:

Methods Summary¶Returns the child that has the focus, or |
|
Returns |
|
Returns |
|
Returns |
|
Sets the current focus window member. |
|
Sets the direction to forward if direction is |
|
Sets the flags for this event. |
|
Marks the navigation event as from a tab key. |
|
Marks the event as a window change event. |
Properties Summary¶See |
|
See |
Class API¶wx.NavigationKeyEvent(Event)¶Possible constructors:
NavigationKeyEvent() -> None
NavigationKeyEvent(event : NavigationKeyEvent) -> None
This event class contains information about navigation events, generated by navigation keys such as tab and page down.
__init__(self, *args, **kw)¶__init__ (self)
None
__init__ (self, event : NavigationKeyEvent)
event (wx.NavigationKeyEvent) –
None
GetDirection(self)¶Returns True if the navigation was in the forward direction.
bool
IsFromTab(self)¶Returns True if the navigation event was from a tab key.
This is required for proper navigation over radio buttons.
bool
IsWindowChange(self)¶Returns True if the navigation event represents a window change (for example, from Ctrl-Page Down in a notebook).
bool
SetCurrentFocus(self, currentFocus : Window)¶Sets the current focus window member.
currentFocus (wx.Window) –
None
SetDirection(self, direction : bool)¶Sets the direction to forward if direction is True, or backward if False.
direction (bool) –
None
SetFlags(self, flags : int)¶Sets the flags for this event.
The flags can be a combination of the NavigationKeyEvent.__init__ values.
flags (long) –
None
SetFromTab(self, fromTab : bool)¶Marks the navigation event as from a tab key.
fromTab (bool) –
None
SetWindowChange(self, windowChange : bool)¶Marks the event as a window change event.
windowChange (bool) –
None
CurrentFocus¶See GetCurrentFocus and SetCurrentFocus
Direction¶See GetDirection and SetDirection