//---------------------------------------------------------------------------
%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
"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.
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),
%typemap(constcode) wxEventType "PyDict_SetItemString(d, \"$symname\", PyInt_FromLong($value));";
+%define %property(NAME, STUFF...)
+ %pythoncode {
+ NAME = property(STUFF)
+ }
+%enddef
//----------------------------------------------------------------------
// Macros for the docstring and autodoc features of SWIG. These will
wxID_HIGHEST,
- wxACCEL_ALT,
- wxACCEL_CTRL,
- wxACCEL_SHIFT,
- wxACCEL_NORMAL,
-
wxPD_AUTO_HIDE,
wxPD_APP_MODAL,
wxPD_CAN_ABORT,