ShortcutEvent is a special subclassing of wx.PyCommandEvent.
This event gets emitted when the user is about to change a shortcut (via EVT_SHORTCUT_CHANGING) and when the user has changed a shortcut (via EVT_SHORTCUT_CHANGED).
__init__ | Default class constructor. |
GetAccelerator | Gets the shortcut string for which the operation was performed for EVT_SHORTCUT_CHANGED |
GetOldAccelerator | Returns the previous shortcut string for EVT_SHORTCUT_CHANGED and |
GetShortcut | Returns the shortcut class used for EVT_SHORTCUT_CHANGED and |
SetAccelerator | Sets the shortcut string for which the operation was performed for EVT_SHORTCUT_CHANGED |
SetOldAccelerator | Sets the previous shortcut string for EVT_SHORTCUT_CHANGED and |
SetShortcut | Sets the shortcut class used for EVT_SHORTCUT_CHANGED and |
ShortcutEvent is a special subclassing of wx.PyCommandEvent.
This event gets emitted when the user is about to change a shortcut (via EVT_SHORTCUT_CHANGING) and when the user has changed a shortcut (via EVT_SHORTCUT_CHANGED).
Default class constructor. For internal use: do not call it in your code!
Parameters: |
|
---|
Gets the shortcut string for which the operation was performed for EVT_SHORTCUT_CHANGED and EVT_SHORTCUT_CHANGING events.
Returns: | A string representing the new shortcut string (accelerator). |
---|
Returns the previous shortcut string for EVT_SHORTCUT_CHANGED and EVT_SHORTCUT_CHANGING events.
Returns: | A string representing the old shortcut string (accelerator). |
---|
Returns the shortcut class used for EVT_SHORTCUT_CHANGED and EVT_SHORTCUT_CHANGING events.
Returns: | An instance of Shortcut. |
---|
Sets the shortcut string for which the operation was performed for EVT_SHORTCUT_CHANGED and EVT_SHORTCUT_CHANGING events.
Parameters: | accelerator (string) – a string representing the new shortcut string (accelerator). |
---|
Sets the previous shortcut string for EVT_SHORTCUT_CHANGED and EVT_SHORTCUT_CHANGING events.
Parameters: | accelerator (string) – a string representing the old shortcut string (accelerator). |
---|