Home | Trees | Index | Help |
|
---|
Package wx :: Class NavigationKeyEvent |
|
object
--+ |Object
--+ |Event
--+ | NavigationKeyEvent
EVT_NAVIGATION_KEY events are used to control moving the focus between
widgets, otherwise known as tab-traversal. You woudl normally not
catch navigation events in applications as there are already
appropriate handlers in wx.Dialog
and wx.Panel
, but you may find
it useful to send navigation events in certain situations to change
the focus in certain ways, although it's probably easier to just call
wx.Window.Navigate
.
Method Summary | |
---|---|
NavigationKeyEvent | __init__(self)
|
Window |
Returns the child window which currenty has the focus. |
bool |
Returns True if the direction is forward, False otherwise. |
bool |
Returns True if the navigation event is originated from the Tab key. |
bool |
Returns True if window change is allowed. |
Set the window that has the focus. | |
Specify the direction that the navigation should take. | |
Set the navigation flags to a combination of the following: | |
Set to true under MSW if the event was generated using the tab key. | |
Specify if the navigation should be able to change parent windows. |
Property Summary | |
---|---|
CurrentFocus : See GetCurrentFocus and SetCurrentFocus | |
Direction : See GetDirection and SetDirection | |
thisown : The membership flag |
Class Variable Summary | |
---|---|
int |
FromTab = 4 |
int |
IsBackward = 0 |
int |
IsForward = 1 |
int |
WinChange = 2 |
Method Details |
---|
GetCurrentFocus(self)Returns the child window which currenty has the focus. May be None.
|
GetDirection(self)Returns True if the direction is forward, False otherwise.
|
IsFromTab(self)Returns True if the navigation event is originated from the Tab key.
|
IsWindowChange(self)Returns True if window change is allowed.
|
SetCurrentFocus(self, win)Set the window that has the focus.
|
SetDirection(self, forward)Specify the direction that the navigation should take. Usually the difference between using Tab and Shift-Tab.
|
SetFlags(self, flags)Set the navigation flags to a combination of the following:
|
SetFromTab(self, bIs)Set to true under MSW if the event was generated using the tab key. This is required for proper navogation over radio buttons.
|
SetWindowChange(self, ischange)Specify if the navigation should be able to change parent windows. For example, changing notebook pages, etc. This is usually implemented by using Control-Tab.
|
Property Details |
---|
CurrentFocusSee
|
DirectionSee
|
thisownThe membership flag |
Class Variable Details |
---|
FromTab
|
IsBackward
|
IsForward
|
WinChange
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Thu Mar 22 12:10:55 2007 | http://epydoc.sf.net |