Home | Trees | Index | Help |
|
---|
Package wx :: Class AcceleratorTable |
|
object
--+ |Object
--+ | AcceleratorTable
An accelerator table allows the application to specify a table of keyboard shortcuts for menus or other commands. On Windows, menu or button commands are supported; on GTK, only menu commands are supported.
The object wx.NullAcceleratorTable is defined to be a table with no data, and is the initial accelerator table for a window.
An accelerator takes precedence over normal processing and can be a convenient way to program some event handling. For example, you can use an accelerator table to make a hotkey generate an event no matter which window within a frame has the focus.
Foe example:
aTable = wx.AcceleratorTable([(wx.ACCEL_ALT, ord('X'), exitID), (wx.ACCEL_CTRL, ord('H'), helpID), (wx.ACCEL_CTRL, ord('F'), findID), (wx.ACCEL_NORMAL, wx.WXK_F3, findnextID) ]) self.SetAcceleratorTable(aTable)
See Also:
wx.AcceleratorEntry
, wx.Window.SetAcceleratorTable
Method Summary | |
---|---|
AcceleratorTable |
Construct an AcceleratorTable from a list of wx.AcceleratorEntry
items or or of 3-tuples (flags, keyCode, cmdID) |
__del__(self)
| |
__repr__(self)
| |
bool | Ok(self)
|
Inherited from Object | |
Deletes the C++ object this Python object is a proxy for. | |
String |
Returns the class name of the C++ class using wxRTTI. |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
Return hash(x)... | |
Return a new object with type S, a subtype of T... | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
Return str(x)... |
Method Details |
---|
__init__(entries)
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Sat Jun 16 16:51:13 2007 | http://epydoc.sf.net |