GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Table of Contents
  • wx.NavigationKeyEvent
  • Show Source
  • index
  • modules
  • next
  • previous
  • Home
  • Gallery
  • wx

This view

  • Original page
  • New address

GeezerVison is showing docs.wxpython.org — wx.NavigationKeyEvent — wxPython 4.3.2 Docs

phoenix_title 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 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.

See also

wx.Window.Navigate , wx.Window.NavigateIn


class_hierarchy Class Hierarchy¶

Inheritance diagram for class NavigationKeyEvent:

Inheritance diagram of NavigationKeyEvent


method_summary Methods Summary¶

__init__

GetCurrentFocus

Returns the child that has the focus, or nullptr.

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.


property_summary Properties Summary¶

CurrentFocus

See GetCurrentFocus and SetCurrentFocus

Direction

See GetDirection and SetDirection


api Class API¶

class wx.NavigationKeyEvent(Event)¶

Possible constructors:

NavigationKeyEvent() -> None

NavigationKeyEvent(event) -> None

This event class contains information about navigation events, generated by navigation keys such as tab and page down.


Methods¶

__init__(self, *args, **kw)¶

overload Overloaded Implementations:



__init__ (self)

Return type:

None



__init__ (self, event)

Parameters:

event (wx.NavigationKeyEvent)

Return type:

None





GetCurrentFocus(self)¶

Returns the child that has the focus, or nullptr.

Return type:

wx.Window



GetDirection(self)¶

Returns True if the navigation was in the forward direction.

Return type:

bool



IsFromTab(self)¶

Returns True if the navigation event was from a tab key.

This is required for proper navigation over radio buttons.

Return type:

bool



IsWindowChange(self)¶

Returns True if the navigation event represents a window change (for example, from Ctrl-Page Down in a notebook).

Return type:

bool



SetCurrentFocus(self, currentFocus)¶

Sets the current focus window member.

Parameters:

currentFocus (wx.Window)

Return type:

None



SetDirection(self, direction)¶

Sets the direction to forward if direction is True, or backward if False.

Parameters:

direction (bool)

Return type:

None



SetFlags(self, flags)¶

Sets the flags for this event.

The flags can be a combination of the NavigationKeyEvent.__init__ values.

Parameters:

flags (long)

Return type:

None



SetFromTab(self, fromTab)¶

Marks the navigation event as from a tab key.

Parameters:

fromTab (bool)

Return type:

None



SetWindowChange(self, windowChange)¶

Marks the event as a window change event.

Parameters:

windowChange (bool)

Return type:

None


Properties¶

CurrentFocus¶

See GetCurrentFocus and SetCurrentFocus



Direction¶

See GetDirection and SetDirection

© Copyright 2012-2026, The wxPython Team. Created using Sphinx 9.1.0 and the python-docs-theme.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.