+ def __del__(self, destroy=_core_.delete_AcceleratorEntry):
+ """__del__(self)"""
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+
+ def Set(*args, **kwargs):
+ """
+ Set(self, int flags, int keyCode, int cmd)
+
+ (Re)set the attributes of a wx.AcceleratorEntry.
+ :see `__init__`
+ """
+ return _core_.AcceleratorEntry_Set(*args, **kwargs)
+
+ def GetFlags(*args, **kwargs):
+ """
+ GetFlags(self) -> int
+
+ Get the AcceleratorEntry's flags.
+ """
+ return _core_.AcceleratorEntry_GetFlags(*args, **kwargs)
+
+ def GetKeyCode(*args, **kwargs):
+ """
+ GetKeyCode(self) -> int
+
+ Get the AcceleratorEntry's keycode.
+ """
+ return _core_.AcceleratorEntry_GetKeyCode(*args, **kwargs)
+
+ def GetCommand(*args, **kwargs):
+ """
+ GetCommand(self) -> int
+
+ Get the AcceleratorEntry's command ID.
+ """
+ return _core_.AcceleratorEntry_GetCommand(*args, **kwargs)
+
+
+class AcceleratorEntryPtr(AcceleratorEntry):
+ def __init__(self, this):
+ self.this = this
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = AcceleratorEntry
+_core_.AcceleratorEntry_swigregister(AcceleratorEntryPtr)
+
+class AcceleratorTable(Object):
+ """
+ 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.
+ """
+ def __repr__(self):
+ return "<%s.%s; proxy of C++ wxAcceleratorTable instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
+ def __init__(self, *args, **kwargs):
+ """
+ __init__(entries) -> AcceleratorTable
+
+ Construct an AcceleratorTable from a list of `wx.AcceleratorEntry`
+ items or or of 3-tuples (flags, keyCode, cmdID)
+
+ :see: `wx.AcceleratorEntry`
+ """
+ newobj = _core_.new_AcceleratorTable(*args, **kwargs)
+ self.this = newobj.this
+ self.thisown = 1
+ del newobj.thisown
+ def __del__(self, destroy=_core_.delete_AcceleratorTable):
+ """__del__(self)"""
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+
+ def Ok(*args, **kwargs):
+ """Ok(self) -> bool"""
+ return _core_.AcceleratorTable_Ok(*args, **kwargs)
+
+
+class AcceleratorTablePtr(AcceleratorTable):
+ def __init__(self, this):
+ self.this = this
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = AcceleratorTable
+_core_.AcceleratorTable_swigregister(AcceleratorTablePtr)
+
+
+def GetAccelFromString(*args, **kwargs):
+ """GetAccelFromString(String label) -> AcceleratorEntry"""
+ return _core_.GetAccelFromString(*args, **kwargs)
+#---------------------------------------------------------------------------
+
+class VisualAttributes(object):
+ """struct containing all the visual attributes of a control"""
+ def __repr__(self):
+ return "<%s.%s; proxy of C++ wxVisualAttributes instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
+ def __init__(self, *args, **kwargs):
+ """
+ __init__(self) -> VisualAttributes
+
+ struct containing all the visual attributes of a control
+ """
+ newobj = _core_.new_VisualAttributes(*args, **kwargs)
+ self.this = newobj.this
+ self.thisown = 1
+ del newobj.thisown
+ def __del__(self, destroy=_core_.delete_VisualAttributes):