wx.AcceleratorEntry

Inheritance diagram for wx.AcceleratorEntry:



Description

An object used by an application wishing to create an accelerator table.

Properties Summary

Class API

Methods

__init__(flags=0, keyCode=0, cmdID=0)

Construct a wx.AcceleratorEntry.

Parameters:

  • flags (int)
  • keyCode (int)
  • cmdID (int)

Returns:

wx.AcceleratorEntry


Create(str)

Create accelerator corresponding to the specified string, or None if it coulnd’t be parsed.

Parameters:

  • str (string)

Returns:

wx.AcceleratorEntry


FromString(str)

Returns True if the given string correctly initialized this object.

Parameters:

  • str (string)

Returns:

bool


GetCommand()

Returns the command identifier for the accelerator table entry.


Returns:

int


GetFlags()

Returns the flags for the accelerator table entry.


Returns:

int


GetKeyCode()

Returns the keycode for the accelerator table entry.


Returns:

int


IsOk()
No docstrings available for this method.

Set(flags, keyCode, cmd)

Sets the accelerator entry parameters.

Parameters:

  • flags (int): One of wx.ACCEL_ALT, wx.ACCEL_SHIFT, wx.ACCEL_CTRL and wx.ACCEL_NORMAL. Indicates which modifier key is held down.
  • keyCode (int): The keycode to be detected.
  • cmd (int): The menu or control command identifier.

ToString()

Returns a string representation for the this accelerator.

The string is formatted using the <flags>-<keycode> format where <flags> maybe a hyphen-separed list of “shift|alt|ctrl”


Returns:

string


Properties

Command
See GetCommand
Flags
See GetFlags
KeyCode
See GetKeyCode