self.GetEventHandler().ProcessEvent(wx.SizeEvent((-1,-1)))
AcceleratorTable = property(GetAcceleratorTable,SetAcceleratorTable,doc="See `GetAcceleratorTable` and `SetAcceleratorTable`")
- AdjustedBestSize = property(GetAdjustedBestSize,doc="See `GetAdjustedBestSize`")
AutoLayout = property(GetAutoLayout,SetAutoLayout,doc="See `GetAutoLayout` and `SetAutoLayout`")
BackgroundColour = property(GetBackgroundColour,SetBackgroundColour,doc="See `GetBackgroundColour` and `SetBackgroundColour`")
BackgroundStyle = property(GetBackgroundStyle,SetBackgroundStyle,doc="See `GetBackgroundStyle` and `SetBackgroundStyle`")
"""Remove(self, int id) -> MenuItem"""
return _core_.Menu_Remove(*args, **kwargs)
- def RemoveItem(*args, **kwargs):
+ def RemoveItem(self, item):
"""RemoveItem(self, MenuItem item) -> MenuItem"""
- return _core_.Menu_RemoveItem(*args, **kwargs)
+ #// The return object is always the parameter, so return that
+ #// proxy instead of the new one
+ val = _core_.Menu_RemoveItem(self, item)
+ item.this.own(val.this.own())
+ val.this.disown()
+ return item
+
def Delete(*args, **kwargs):
"""Delete(self, int id) -> bool"""
__repr__ = _swig_repr
def __init__(self, *args, **kwargs):
"""
- __init__(self, Menu parentMenu=None, int id=ID_ANY, String text=EmptyString,
+ __init__(self, Menu parentMenu=None, int id=ID_SEPARATOR, String text=EmptyString,
String help=EmptyString, int kind=ITEM_NORMAL,
Menu subMenu=None) -> MenuItem
"""
_core_.MenuItem_swiginit(self,_core_.new_MenuItem(*args, **kwargs))
__swig_destroy__ = _core_.delete_MenuItem
__del__ = lambda self : None;
+ def Destroy(self): pass
def GetMenu(*args, **kwargs):
"""GetMenu(self) -> Menu"""
return _core_.MenuItem_GetMenu(*args, **kwargs)