def __init__(self,this):
self.this = this
self.thisown = 0
- def __del__(self,htmlhelpc=htmlhelpc):
- if self.thisown == 1 :
- htmlhelpc.delete_wxHtmlHelpData(self)
+ def __del__(self, delfunc=htmlhelpc.delete_wxHtmlHelpData):
+ if self.thisown == 1:
+ try:
+ delfunc(self)
+ except:
+ pass
def SetTempDir(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlHelpData_SetTempDir,(self,) + _args, _kwargs)
return val
def __init__(self,this):
self.this = this
self.thisown = 0
- def __del__(self,htmlhelpc=htmlhelpc):
- if self.thisown == 1 :
- htmlhelpc.delete_wxHtmlHelpController(self)
+ def __del__(self, delfunc=htmlhelpc.delete_wxHtmlHelpController):
+ if self.thisown == 1:
+ try:
+ delfunc(self)
+ except:
+ pass
def SetTitleFormat(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlHelpController_SetTitleFormat,(self,) + _args, _kwargs)
return val