def __init__(self,this):
self.this = this
self.thisown = 0
- def __del__(self,cmndlgsc=cmndlgsc):
- if self.thisown == 1 :
- cmndlgsc.delete_wxColourData(self)
+ def __del__(self, delfunc=cmndlgsc.delete_wxColourData):
+ if self.thisown == 1:
+ try:
+ delfunc(self)
+ except:
+ pass
def GetChooseFull(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxColourData_GetChooseFull,(self,) + _args, _kwargs)
return val
def __init__(self,this):
self.this = this
self.thisown = 0
- def __del__(self,cmndlgsc=cmndlgsc):
- if self.thisown == 1 :
- cmndlgsc.delete_wxFontData(self)
+ def __del__(self, delfunc=cmndlgsc.delete_wxFontData):
+ if self.thisown == 1:
+ try:
+ delfunc(self)
+ except:
+ pass
def EnableEffects(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFontData_EnableEffects,(self,) + _args, _kwargs)
return val
def __init__(self,this):
self.this = this
self.thisown = 0
- def __del__(self,cmndlgsc=cmndlgsc):
- if self.thisown == 1 :
- cmndlgsc.delete_wxFindReplaceData(self)
+ def __del__(self, delfunc=cmndlgsc.delete_wxFindReplaceData):
+ if self.thisown == 1:
+ try:
+ delfunc(self)
+ except:
+ pass
def GetFindString(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFindReplaceData_GetFindString,(self,) + _args, _kwargs)
return val