Enter search terms or a module, class or function name.
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 NavigationKeyEvent handler is automatically provided by wxWidgets when you enable keyboard navigation inside a window by inheriting it from NavigationEnabled<>.
Handlers bound for the following event types will receive a NavigationKeyEvent parameter.
See also
__init__ | |
GetCurrentFocus | Returns the child that has the focus, or None. |
GetDirection | Returns True if the navigation was in the forward direction. |
IsFromTab | Returns True if the navigation event was from a tab key. |
IsWindowChange | Returns True if the navigation event represents a window change (for example, from Ctrl-Page Down in a notebook). |
SetCurrentFocus | Sets the current focus window member. |
SetDirection | Sets the direction to forward if direction is True, or backward if False. |
SetFlags | Sets the flags for this event. |
SetFromTab | Marks the navigation event as from a tab key. |
SetWindowChange | Marks the event as a window change event. |
CurrentFocus | See GetCurrentFocus and SetCurrentFocus |
Direction | See GetDirection and SetDirection |
This event class contains information about navigation events, generated by navigation keys such as tab and page down.
Possible constructors:
NavigationKeyEvent()
NavigationKeyEvent(event)
Overloaded Implementations:
__init__ (self)
__init__ (self, event)
Parameters: | event (NavigationKeyEvent) – |
---|
Returns True if the navigation was in the forward direction.
Return type: | bool |
---|
Returns True if the navigation event was from a tab key.
This is required for proper navigation over radio buttons.
Return type: | bool |
---|
Returns True if the navigation event represents a window change (for example, from Ctrl-Page Down in a notebook).
Return type: | bool |
---|
Sets the current focus window member.
Parameters: | currentFocus (Window) – |
---|
Sets the direction to forward if direction is True, or backward if False.
Parameters: | direction (bool) – |
---|
Sets the flags for this event.
The flags can be a combination of the NavigationKeyEventFlags values.
Parameters: | flags (long) – |
---|
Marks the navigation event as from a tab key.
Parameters: | fromTab (bool) – |
---|
Marks the event as a window change event.
Parameters: | windowChange (bool) – |
---|
See GetCurrentFocus and SetCurrentFocus
See GetDirection and SetDirection