def __init__(self,this):
self.this = this
self.thisown = 0
- def __del__(self,windows2c=windows2c):
- if self.thisown == 1 :
- windows2c.delete_wxTaskBarIcon(self)
+ def __del__(self, delfunc=windows2c.delete_wxTaskBarIcon):
+ if self.thisown == 1:
+ try:
+ delfunc(self)
+ except:
+ pass
def SetIcon(self, *_args, **_kwargs):
val = apply(windows2c.wxTaskBarIcon_SetIcon,(self,) + _args, _kwargs)
return val
val = apply(windows2c.wxPyWindow_base_GetMaxSize,(self,) + _args, _kwargs)
if val: val = wxSizePtr(val) ; val.thisown = 1
return val
+ def base_AddChild(self, *_args, **_kwargs):
+ val = apply(windows2c.wxPyWindow_base_AddChild,(self,) + _args, _kwargs)
+ return val
+ def base_RemoveChild(self, *_args, **_kwargs):
+ val = apply(windows2c.wxPyWindow_base_RemoveChild,(self,) + _args, _kwargs)
+ return val
def __repr__(self):
return "<C wxPyWindow instance at %s>" % (self.this,)
class wxPyWindow(wxPyWindowPtr):
val = apply(windows2c.wxPyControl_base_GetMaxSize,(self,) + _args, _kwargs)
if val: val = wxSizePtr(val) ; val.thisown = 1
return val
+ def base_AddChild(self, *_args, **_kwargs):
+ val = apply(windows2c.wxPyControl_base_AddChild,(self,) + _args, _kwargs)
+ return val
+ def base_RemoveChild(self, *_args, **_kwargs):
+ val = apply(windows2c.wxPyControl_base_RemoveChild,(self,) + _args, _kwargs)
+ return val
def __repr__(self):
return "<C wxPyControl instance at %s>" % (self.this,)
class wxPyControl(wxPyControlPtr):
val = apply(windows2c.wxPyPanel_base_GetMaxSize,(self,) + _args, _kwargs)
if val: val = wxSizePtr(val) ; val.thisown = 1
return val
+ def base_AddChild(self, *_args, **_kwargs):
+ val = apply(windows2c.wxPyPanel_base_AddChild,(self,) + _args, _kwargs)
+ return val
+ def base_RemoveChild(self, *_args, **_kwargs):
+ val = apply(windows2c.wxPyPanel_base_RemoveChild,(self,) + _args, _kwargs)
+ return val
def __repr__(self):
return "<C wxPyPanel instance at %s>" % (self.this,)
class wxPyPanel(wxPyPanelPtr):