from gdi import *
+from fonts import *
+
from windows import *
from clip_dnd import *
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
+class wxMultiChoiceDialogPtr(wxDialogPtr):
+ def __init__(self,this):
+ self.this = this
+ self.thisown = 0
+ def SetSelections(self, *_args, **_kwargs):
+ val = apply(cmndlgsc.wxMultiChoiceDialog_SetSelections,(self,) + _args, _kwargs)
+ return val
+ def GetSelections(self, *_args, **_kwargs):
+ val = apply(cmndlgsc.wxMultiChoiceDialog_GetSelections,(self,) + _args, _kwargs)
+ return val
+ def __repr__(self):
+ return "<C wxMultiChoiceDialog instance at %s>" % (self.this,)
+class wxMultiChoiceDialog(wxMultiChoiceDialogPtr):
+ def __init__(self,*_args,**_kwargs):
+ self.this = apply(cmndlgsc.new_wxMultiChoiceDialog,_args,_kwargs)
+ self.thisown = 1
+ self._setOORInfo(self)
+
+
+
+
class wxSingleChoiceDialogPtr(wxDialogPtr):
def __init__(self,this):
self.this = this
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
def wxPreFindReplaceDialog(*_args,**_kwargs):
val = wxFindReplaceDialogPtr(apply(cmndlgsc.new_wxPreFindReplaceDialog,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
#-------------- VARIABLE WRAPPERS ------------------
+wxCHOICEDLG_STYLE = cmndlgsc.wxCHOICEDLG_STYLE
wxFR_DOWN = cmndlgsc.wxFR_DOWN
wxFR_WHOLEWORD = cmndlgsc.wxFR_WHOLEWORD
wxFR_MATCHCASE = cmndlgsc.wxFR_MATCHCASE