wx.AcceleratorTable

Inheritance diagram for wx.AcceleratorTable:



Description

An accelerator table allows the application to specify a table of keyboard shortcuts for menu or button commands.

The object wx.NullAcceleratorTable is defined to be a table with no data, and is the initial accelerator table for a window.

Derived From

Remarks

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 enable a dialog with a multi-line text control to accept CTRL-Enter as meaning ‘OK’ (but not in GTK+ at present).

Methods Summary

Class API

Methods

__init__(entries)

Construct a wx.AcceleratorTable from a list of wx.AcceleratorEntry items or or of 3-tuples (flags, keyCode, cmdID)

Parameters:

  • entries

Returns:

wx.AcceleratorTable


IsOk()

Returns True if the accelerator table is valid.


Returns:

bool