X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/99a001dd43b3b2b23ea5787c7a94c5328e3c3375..b5c5355ba39f4ab9147270b32fe29b74bd1aa7e8:/wxPython/src/_accel.i diff --git a/wxPython/src/_accel.i b/wxPython/src/_accel.i index 334cf13c56..f9b6c2f12a 100644 --- a/wxPython/src/_accel.i +++ b/wxPython/src/_accel.i @@ -30,6 +30,14 @@ //--------------------------------------------------------------------------- %newgroup; +enum { + wxACCEL_ALT, + wxACCEL_CTRL, + wxACCEL_SHIFT, + wxACCEL_NORMAL, + wxACCEL_CMD, +}; + DocStr(wxAcceleratorEntry, "A class used to define items in an `wx.AcceleratorTable`. wxPython programs can choose to use wx.AcceleratorEntry objects, but using a @@ -45,8 +53,8 @@ public: "Construct a wx.AcceleratorEntry.", " :param flags: A bitmask of wx.ACCEL_ALT, wx.ACCEL_SHIFT, - wx.ACCEL_CTRL or wx.ACCEL_NORMAL used to specify - which modifier keys are held down. + wx.ACCEL_CTRL, wx.ACCEL_CMD, or wx.ACCEL_NORMAL + used to specify which modifier keys are held down. :param keyCode: The keycode to be detected :param cmdID: The menu or control command ID to use for the accellerator event. @@ -93,7 +101,7 @@ 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:: +For example:: aTable = wx.AcceleratorTable([(wx.ACCEL_ALT, ord('X'), exitID), (wx.ACCEL_CTRL, ord('H'), helpID),