return _controls.Button_SetImageMargins(*args, **kwargs)
def GetDefaultSize(*args, **kwargs):
- """Button.GetDefaultSize() -> Size"""
+ """GetDefaultSize() -> Size"""
return _controls.Button_GetDefaultSize(*args, **kwargs)
GetDefaultSize = staticmethod(GetDefaultSize)
return _controls.StaticLine_IsVertical(*args, **kwargs)
def GetDefaultSize(*args, **kwargs):
- """StaticLine.GetDefaultSize() -> int"""
+ """GetDefaultSize() -> int"""
return _controls.StaticLine_GetDefaultSize(*args, **kwargs)
GetDefaultSize = staticmethod(GetDefaultSize)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
+ def __del__(self, destroy=_controls.delete_TextAttr):
+ """__del__()"""
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+
def Init(*args, **kwargs):
"""Init()"""
return _controls.TextAttr_Init(*args, **kwargs)
return _controls.TextAttr_IsDefault(*args, **kwargs)
def Combine(*args, **kwargs):
- """TextAttr.Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
+ """Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
return _controls.TextAttr_Combine(*args, **kwargs)
Combine = staticmethod(Combine)
return "<%s.%s; proxy of C++ wxRadioBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
"""
- __init__(Window parent, int id, String label, Point point=DefaultPosition,
+ __init__(Window parent, int id, String label, Point pos=DefaultPosition,
Size size=DefaultSize, int choices=0,
String choices_array=None, int majorDimension=0,
long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
String name=RadioBoxNameStr) -> RadioBox
"""
+ if kwargs.has_key('point'): kwargs['pos'] = kwargs['point']
newobj = _controls.new_RadioBox(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
def Create(*args, **kwargs):
"""
- Create(Window parent, int id, String label, Point point=DefaultPosition,
+ Create(Window parent, int id, String label, Point pos=DefaultPosition,
Size size=DefaultSize, int choices=0,
String choices_array=None, int majorDimension=0,
long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
def __init__(self, *args, **kwargs):
"""
__init__(Window parent, int id, int value, int minValue, int maxValue,
- Point point=DefaultPosition, Size size=DefaultSize,
+ Point pos=DefaultPosition, Size size=DefaultSize,
long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
String name=SliderNameStr) -> Slider
"""
+ if kwargs.has_key('point'): kwargs['pos'] = kwargs['point']
newobj = _controls.new_Slider(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
def Create(*args, **kwargs):
"""
Create(Window parent, int id, int value, int minValue, int maxValue,
- Point point=DefaultPosition, Size size=DefaultSize,
+ Point pos=DefaultPosition, Size size=DefaultSize,
long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
String name=SliderNameStr) -> bool
"""
return _controls.Slider_GetThumbLength(*args, **kwargs)
def SetTickFreq(*args, **kwargs):
- """SetTickFreq(int n, int pos)"""
+ """SetTickFreq(int n, int pos=1)"""
return _controls.Slider_SetTickFreq(*args, **kwargs)
def GetTickFreq(*args, **kwargs):
def AssignImageList(*args, **kwargs):
"""AssignImageList(ImageList imageList)"""
- val = _controls.BookCtrl_AssignImageList(*args, **kwargs)
- args[1].thisown = 0
- return val
+ return _controls.BookCtrl_AssignImageList(*args, **kwargs)
def GetImageList(*args, **kwargs):
"""GetImageList() -> ImageList"""
"""
HitTest(Point pt) -> (tab, where)
- Returns the tab which is hit, and flags indicating where using wxNB_HITTEST_ flags.
+ Returns the tab which is hit, and flags indicating where using wx.NB_HITTEST_ flags.
"""
return _controls.Notebook_HitTest(*args, **kwargs)
def AssignImageList(*args, **kwargs):
"""AssignImageList(ImageList imageList, int which)"""
- val = _controls.ListCtrl_AssignImageList(*args, **kwargs)
- args[1].thisown = 0
- return val
+ return _controls.ListCtrl_AssignImageList(*args, **kwargs)
def IsVirtual(*args, **kwargs):
"""IsVirtual() -> bool"""
def AssignImageList(*args, **kwargs):
"""AssignImageList(ImageList imageList)"""
- val = _controls.TreeCtrl_AssignImageList(*args, **kwargs)
- args[1].thisown = 0
- return val
+ return _controls.TreeCtrl_AssignImageList(*args, **kwargs)
def AssignStateImageList(*args, **kwargs):
"""AssignStateImageList(ImageList imageList)"""
- val = _controls.TreeCtrl_AssignStateImageList(*args, **kwargs)
- args[1].thisown = 0
- return val
+ return _controls.TreeCtrl_AssignStateImageList(*args, **kwargs)
def GetItemText(*args, **kwargs):
"""GetItemText(TreeItemId item) -> String"""
return _controls.TreeCtrl_GetFirstChild(*args, **kwargs)
def GetNextChild(*args, **kwargs):
- """GetNextChild(TreeItemId item, wxTreeItemIdValue cookie) -> PyObject"""
+ """GetNextChild(TreeItemId item, void cookie) -> PyObject"""
return _controls.TreeCtrl_GetNextChild(*args, **kwargs)
def GetLastChild(*args, **kwargs):
def __repr__(self):
return "<%s.%s; proxy of C++ wxHelpProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def Set(*args, **kwargs):
- """HelpProvider.Set(HelpProvider helpProvider) -> HelpProvider"""
+ """Set(HelpProvider helpProvider) -> HelpProvider"""
return _controls.HelpProvider_Set(*args, **kwargs)
Set = staticmethod(Set)
def Get(*args, **kwargs):
- """HelpProvider.Get() -> HelpProvider"""
+ """Get() -> HelpProvider"""
return _controls.HelpProvider_Get(*args, **kwargs)
Get = staticmethod(Get)