Wx.Accelerator Table

Wx.Accelerator Table



wx.AcceleratorTable. ¶. 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.

An accelerator table allows the application to specify a table of keyboard shortcuts for menu or button commands. The object wxNullAcceleratorTable is defined to be a table with no data, and is the initial accelerator table for a window. entries [0]. Set ( wxACCEL_CTRL, ( int).

wxAcceleratorTable. An accelerator table allows the application to specify a table of keyboard shortcuts formenus or other commands. On Windows, menu or button commands are supported; on GTK,only menu commands are supported.

wxAcceleratorTable() An object reference, The representation is internal and can be changed without notice. It can’t be used for comparsion stored on disc or distributed for use on other nodes.

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.

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 wxNullAcceleratorTable is defined to be a table with no data, and is the initial accelerator table for a window. Derived from. wxObject, Class API ¶. class wx.AcceleratorEntry(object) ¶. Possible constructors: AcceleratorEntry(flags=0, keyCode=0, cmd=0, item=None) AcceleratorEntry(entry) An object used by an application wishing to create an accelerator table (see AcceleratorTable).

> > You need to create the Accelerator table first. Like this: > > self.table = wxAcceleratorTable([(wxACCEL_CTRL, ord(‘X’), exitID), > (wxACCEL_CTRL, ord(‘H’), helpID)]) > self.SetAcceleratorTable(self.table) > > where exitID and helpID are the IDs of the menu items.

str: This string may be either in the same format as returned by ToString(), i.e. contain the accelerator itself only, or have the format of a full menu item text with i.e. Label TAB Accelerator.In the latter case, the part of the string before the TAB is ignored. Notice that the latter format is only supported for the compatibility with the previous wxWidgets versions and the new code should …

wxAcceleratorTable. ?????????????????????????????????????????????????? ????????????. Windows ?????????????????????????????; GTK ???????????????????????. An accelerator table allows the application to specify a table of keyboard shortcuts for menus or other commands.

Advertiser