X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/17c0e08c61c69b77e58b3e9ffc78d58fcf105940..71aba8333cc915afff9e740c944f7fa7247abacb:/wxPython/src/msw/cmndlgs.py diff --git a/wxPython/src/msw/cmndlgs.py b/wxPython/src/msw/cmndlgs.py index 45912c3c49..c796fe6829 100644 --- a/wxPython/src/msw/cmndlgs.py +++ b/wxPython/src/msw/cmndlgs.py @@ -5,6 +5,8 @@ from misc import * from gdi import * +from fonts import * + from windows import * from clip_dnd import * @@ -39,34 +41,37 @@ class wxColourDataPtr(wxObjectPtr): 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) + val = cmndlgsc.wxColourData_GetChooseFull(self, *_args, **_kwargs) return val def GetColour(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxColourData_GetColour,(self,) + _args, _kwargs) + val = cmndlgsc.wxColourData_GetColour(self, *_args, **_kwargs) if val: val = wxColourPtr(val) ; val.thisown = 1 return val def GetCustomColour(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxColourData_GetCustomColour,(self,) + _args, _kwargs) + val = cmndlgsc.wxColourData_GetCustomColour(self, *_args, **_kwargs) if val: val = wxColourPtr(val) ; val.thisown = 1 return val def SetChooseFull(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxColourData_SetChooseFull,(self,) + _args, _kwargs) + val = cmndlgsc.wxColourData_SetChooseFull(self, *_args, **_kwargs) return val def SetColour(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxColourData_SetColour,(self,) + _args, _kwargs) + val = cmndlgsc.wxColourData_SetColour(self, *_args, **_kwargs) return val def SetCustomColour(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxColourData_SetCustomColour,(self,) + _args, _kwargs) + val = cmndlgsc.wxColourData_SetCustomColour(self, *_args, **_kwargs) return val def __repr__(self): - return "" % (self.this,) + return "<%s.%s instance; proxy of C++ wxColourData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) class wxColourData(wxColourDataPtr): def __init__(self,*_args,**_kwargs): - self.this = apply(cmndlgsc.new_wxColourData,_args,_kwargs) + self.this = cmndlgsc.new_wxColourData(*_args,**_kwargs) self.thisown = 1 @@ -77,17 +82,17 @@ class wxColourDialogPtr(wxDialogPtr): self.this = this self.thisown = 0 def GetColourData(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxColourDialog_GetColourData,(self,) + _args, _kwargs) + val = cmndlgsc.wxColourDialog_GetColourData(self, *_args, **_kwargs) if val: val = wxColourDataPtr(val) return val def ShowModal(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxColourDialog_ShowModal,(self,) + _args, _kwargs) + val = cmndlgsc.wxColourDialog_ShowModal(self, *_args, **_kwargs) return val def __repr__(self): - return "" % (self.this,) + return "<%s.%s instance; proxy of C++ wxColourDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) class wxColourDialog(wxColourDialogPtr): def __init__(self,*_args,**_kwargs): - self.this = apply(cmndlgsc.new_wxColourDialog,_args,_kwargs) + self.this = cmndlgsc.new_wxColourDialog(*_args,**_kwargs) self.thisown = 1 self._setOORInfo(self) @@ -99,28 +104,28 @@ class wxDirDialogPtr(wxDialogPtr): self.this = this self.thisown = 0 def GetPath(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxDirDialog_GetPath,(self,) + _args, _kwargs) + val = cmndlgsc.wxDirDialog_GetPath(self, *_args, **_kwargs) return val def GetMessage(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxDirDialog_GetMessage,(self,) + _args, _kwargs) + val = cmndlgsc.wxDirDialog_GetMessage(self, *_args, **_kwargs) return val def GetStyle(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxDirDialog_GetStyle,(self,) + _args, _kwargs) + val = cmndlgsc.wxDirDialog_GetStyle(self, *_args, **_kwargs) return val def SetMessage(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxDirDialog_SetMessage,(self,) + _args, _kwargs) + val = cmndlgsc.wxDirDialog_SetMessage(self, *_args, **_kwargs) return val def SetPath(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxDirDialog_SetPath,(self,) + _args, _kwargs) + val = cmndlgsc.wxDirDialog_SetPath(self, *_args, **_kwargs) return val def ShowModal(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxDirDialog_ShowModal,(self,) + _args, _kwargs) + val = cmndlgsc.wxDirDialog_ShowModal(self, *_args, **_kwargs) return val def __repr__(self): - return "" % (self.this,) + return "<%s.%s instance; proxy of C++ wxDirDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) class wxDirDialog(wxDirDialogPtr): def __init__(self,*_args,**_kwargs): - self.this = apply(cmndlgsc.new_wxDirDialog,_args,_kwargs) + self.this = cmndlgsc.new_wxDirDialog(*_args,**_kwargs) self.thisown = 1 self._setOORInfo(self) @@ -131,62 +136,80 @@ class wxFileDialogPtr(wxDialogPtr): def __init__(self,this): self.this = this self.thisown = 0 - def GetDirectory(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFileDialog_GetDirectory,(self,) + _args, _kwargs) - return val - def GetFilename(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFileDialog_GetFilename,(self,) + _args, _kwargs) + def SetMessage(self, *_args, **_kwargs): + val = cmndlgsc.wxFileDialog_SetMessage(self, *_args, **_kwargs) return val - def GetFilterIndex(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFileDialog_GetFilterIndex,(self,) + _args, _kwargs) + def SetPath(self, *_args, **_kwargs): + val = cmndlgsc.wxFileDialog_SetPath(self, *_args, **_kwargs) return val - def GetMessage(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFileDialog_GetMessage,(self,) + _args, _kwargs) + def SetDirectory(self, *_args, **_kwargs): + val = cmndlgsc.wxFileDialog_SetDirectory(self, *_args, **_kwargs) return val - def GetPath(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFileDialog_GetPath,(self,) + _args, _kwargs) + def SetFilename(self, *_args, **_kwargs): + val = cmndlgsc.wxFileDialog_SetFilename(self, *_args, **_kwargs) return val - def GetStyle(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFileDialog_GetStyle,(self,) + _args, _kwargs) + def SetWildcard(self, *_args, **_kwargs): + val = cmndlgsc.wxFileDialog_SetWildcard(self, *_args, **_kwargs) return val - def GetWildcard(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFileDialog_GetWildcard,(self,) + _args, _kwargs) + def SetStyle(self, *_args, **_kwargs): + val = cmndlgsc.wxFileDialog_SetStyle(self, *_args, **_kwargs) return val - def SetDirectory(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFileDialog_SetDirectory,(self,) + _args, _kwargs) + def SetFilterIndex(self, *_args, **_kwargs): + val = cmndlgsc.wxFileDialog_SetFilterIndex(self, *_args, **_kwargs) return val - def SetFilename(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFileDialog_SetFilename,(self,) + _args, _kwargs) + def GetMessage(self, *_args, **_kwargs): + val = cmndlgsc.wxFileDialog_GetMessage(self, *_args, **_kwargs) return val - def SetFilterIndex(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFileDialog_SetFilterIndex,(self,) + _args, _kwargs) + def GetPath(self, *_args, **_kwargs): + val = cmndlgsc.wxFileDialog_GetPath(self, *_args, **_kwargs) return val - def SetMessage(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFileDialog_SetMessage,(self,) + _args, _kwargs) + def GetDirectory(self, *_args, **_kwargs): + val = cmndlgsc.wxFileDialog_GetDirectory(self, *_args, **_kwargs) return val - def SetPath(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFileDialog_SetPath,(self,) + _args, _kwargs) + def GetFilename(self, *_args, **_kwargs): + val = cmndlgsc.wxFileDialog_GetFilename(self, *_args, **_kwargs) return val - def SetStyle(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFileDialog_SetStyle,(self,) + _args, _kwargs) + def GetWildcard(self, *_args, **_kwargs): + val = cmndlgsc.wxFileDialog_GetWildcard(self, *_args, **_kwargs) return val - def SetWildcard(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFileDialog_SetWildcard,(self,) + _args, _kwargs) + def GetStyle(self, *_args, **_kwargs): + val = cmndlgsc.wxFileDialog_GetStyle(self, *_args, **_kwargs) return val - def ShowModal(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFileDialog_ShowModal,(self,) + _args, _kwargs) + def GetFilterIndex(self, *_args, **_kwargs): + val = cmndlgsc.wxFileDialog_GetFilterIndex(self, *_args, **_kwargs) return val def GetFilenames(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFileDialog_GetFilenames,(self,) + _args, _kwargs) + val = cmndlgsc.wxFileDialog_GetFilenames(self, *_args, **_kwargs) return val def GetPaths(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFileDialog_GetPaths,(self,) + _args, _kwargs) + val = cmndlgsc.wxFileDialog_GetPaths(self, *_args, **_kwargs) return val def __repr__(self): - return "" % (self.this,) + return "<%s.%s instance; proxy of C++ wxFileDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) class wxFileDialog(wxFileDialogPtr): def __init__(self,*_args,**_kwargs): - self.this = apply(cmndlgsc.new_wxFileDialog,_args,_kwargs) + self.this = cmndlgsc.new_wxFileDialog(*_args,**_kwargs) + self.thisown = 1 + self._setOORInfo(self) + + + + +class wxMultiChoiceDialogPtr(wxDialogPtr): + def __init__(self,this): + self.this = this + self.thisown = 0 + def SetSelections(self, *_args, **_kwargs): + val = cmndlgsc.wxMultiChoiceDialog_SetSelections(self, *_args, **_kwargs) + return val + def GetSelections(self, *_args, **_kwargs): + val = cmndlgsc.wxMultiChoiceDialog_GetSelections(self, *_args, **_kwargs) + return val + def __repr__(self): + return "<%s.%s instance; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) +class wxMultiChoiceDialog(wxMultiChoiceDialogPtr): + def __init__(self,*_args,**_kwargs): + self.this = cmndlgsc.new_wxMultiChoiceDialog(*_args,**_kwargs) self.thisown = 1 self._setOORInfo(self) @@ -198,22 +221,22 @@ class wxSingleChoiceDialogPtr(wxDialogPtr): self.this = this self.thisown = 0 def GetSelection(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxSingleChoiceDialog_GetSelection,(self,) + _args, _kwargs) + val = cmndlgsc.wxSingleChoiceDialog_GetSelection(self, *_args, **_kwargs) return val def GetStringSelection(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxSingleChoiceDialog_GetStringSelection,(self,) + _args, _kwargs) + val = cmndlgsc.wxSingleChoiceDialog_GetStringSelection(self, *_args, **_kwargs) return val def SetSelection(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxSingleChoiceDialog_SetSelection,(self,) + _args, _kwargs) + val = cmndlgsc.wxSingleChoiceDialog_SetSelection(self, *_args, **_kwargs) return val def ShowModal(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxSingleChoiceDialog_ShowModal,(self,) + _args, _kwargs) + val = cmndlgsc.wxSingleChoiceDialog_ShowModal(self, *_args, **_kwargs) return val def __repr__(self): - return "" % (self.this,) + return "<%s.%s instance; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) class wxSingleChoiceDialog(wxSingleChoiceDialogPtr): def __init__(self,*_args,**_kwargs): - self.this = apply(cmndlgsc.new_wxSingleChoiceDialog,_args,_kwargs) + self.this = cmndlgsc.new_wxSingleChoiceDialog(*_args,**_kwargs) self.thisown = 1 self._setOORInfo(self) @@ -225,19 +248,19 @@ class wxTextEntryDialogPtr(wxDialogPtr): self.this = this self.thisown = 0 def GetValue(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxTextEntryDialog_GetValue,(self,) + _args, _kwargs) + val = cmndlgsc.wxTextEntryDialog_GetValue(self, *_args, **_kwargs) return val def SetValue(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxTextEntryDialog_SetValue,(self,) + _args, _kwargs) + val = cmndlgsc.wxTextEntryDialog_SetValue(self, *_args, **_kwargs) return val def ShowModal(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxTextEntryDialog_ShowModal,(self,) + _args, _kwargs) + val = cmndlgsc.wxTextEntryDialog_ShowModal(self, *_args, **_kwargs) return val def __repr__(self): - return "" % (self.this,) + return "<%s.%s instance; proxy of C++ wxTextEntryDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) class wxTextEntryDialog(wxTextEntryDialogPtr): def __init__(self,*_args,**_kwargs): - self.this = apply(cmndlgsc.new_wxTextEntryDialog,_args,_kwargs) + self.this = cmndlgsc.new_wxTextEntryDialog(*_args,**_kwargs) self.thisown = 1 self._setOORInfo(self) @@ -248,56 +271,59 @@ class wxFontDataPtr(wxObjectPtr): 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) + val = cmndlgsc.wxFontData_EnableEffects(self, *_args, **_kwargs) return val def GetAllowSymbols(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFontData_GetAllowSymbols,(self,) + _args, _kwargs) + val = cmndlgsc.wxFontData_GetAllowSymbols(self, *_args, **_kwargs) return val def GetColour(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFontData_GetColour,(self,) + _args, _kwargs) + val = cmndlgsc.wxFontData_GetColour(self, *_args, **_kwargs) if val: val = wxColourPtr(val) ; val.thisown = 1 return val def GetChosenFont(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFontData_GetChosenFont,(self,) + _args, _kwargs) + val = cmndlgsc.wxFontData_GetChosenFont(self, *_args, **_kwargs) if val: val = wxFontPtr(val) ; val.thisown = 1 return val def GetEnableEffects(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFontData_GetEnableEffects,(self,) + _args, _kwargs) + val = cmndlgsc.wxFontData_GetEnableEffects(self, *_args, **_kwargs) return val def GetInitialFont(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFontData_GetInitialFont,(self,) + _args, _kwargs) + val = cmndlgsc.wxFontData_GetInitialFont(self, *_args, **_kwargs) if val: val = wxFontPtr(val) ; val.thisown = 1 return val def GetShowHelp(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFontData_GetShowHelp,(self,) + _args, _kwargs) + val = cmndlgsc.wxFontData_GetShowHelp(self, *_args, **_kwargs) return val def SetAllowSymbols(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFontData_SetAllowSymbols,(self,) + _args, _kwargs) + val = cmndlgsc.wxFontData_SetAllowSymbols(self, *_args, **_kwargs) return val def SetChosenFont(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFontData_SetChosenFont,(self,) + _args, _kwargs) + val = cmndlgsc.wxFontData_SetChosenFont(self, *_args, **_kwargs) return val def SetColour(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFontData_SetColour,(self,) + _args, _kwargs) + val = cmndlgsc.wxFontData_SetColour(self, *_args, **_kwargs) return val def SetInitialFont(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFontData_SetInitialFont,(self,) + _args, _kwargs) + val = cmndlgsc.wxFontData_SetInitialFont(self, *_args, **_kwargs) return val def SetRange(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFontData_SetRange,(self,) + _args, _kwargs) + val = cmndlgsc.wxFontData_SetRange(self, *_args, **_kwargs) return val def SetShowHelp(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFontData_SetShowHelp,(self,) + _args, _kwargs) + val = cmndlgsc.wxFontData_SetShowHelp(self, *_args, **_kwargs) return val def __repr__(self): - return "" % (self.this,) + return "<%s.%s instance; proxy of C++ wxFontData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) class wxFontData(wxFontDataPtr): def __init__(self,*_args,**_kwargs): - self.this = apply(cmndlgsc.new_wxFontData,_args,_kwargs) + self.this = cmndlgsc.new_wxFontData(*_args,**_kwargs) self.thisown = 1 @@ -308,17 +334,17 @@ class wxFontDialogPtr(wxDialogPtr): self.this = this self.thisown = 0 def GetFontData(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFontDialog_GetFontData,(self,) + _args, _kwargs) + val = cmndlgsc.wxFontDialog_GetFontData(self, *_args, **_kwargs) if val: val = wxFontDataPtr(val) return val def ShowModal(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFontDialog_ShowModal,(self,) + _args, _kwargs) + val = cmndlgsc.wxFontDialog_ShowModal(self, *_args, **_kwargs) return val def __repr__(self): - return "" % (self.this,) + return "<%s.%s instance; proxy of C++ wxFontDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) class wxFontDialog(wxFontDialogPtr): def __init__(self,*_args,**_kwargs): - self.this = apply(cmndlgsc.new_wxFontDialog,_args,_kwargs) + self.this = cmndlgsc.new_wxFontDialog(*_args,**_kwargs) self.thisown = 1 self._setOORInfo(self) @@ -330,13 +356,13 @@ class wxMessageDialogPtr(wxDialogPtr): self.this = this self.thisown = 0 def ShowModal(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxMessageDialog_ShowModal,(self,) + _args, _kwargs) + val = cmndlgsc.wxMessageDialog_ShowModal(self, *_args, **_kwargs) return val def __repr__(self): - return "" % (self.this,) + return "<%s.%s instance; proxy of C++ wxMessageDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) class wxMessageDialog(wxMessageDialogPtr): def __init__(self,*_args,**_kwargs): - self.this = apply(cmndlgsc.new_wxMessageDialog,_args,_kwargs) + self.this = cmndlgsc.new_wxMessageDialog(*_args,**_kwargs) self.thisown = 1 self._setOORInfo(self) @@ -348,16 +374,16 @@ class wxProgressDialogPtr(wxFramePtr): self.this = this self.thisown = 0 def Update(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxProgressDialog_Update,(self,) + _args, _kwargs) + val = cmndlgsc.wxProgressDialog_Update(self, *_args, **_kwargs) return val def Resume(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxProgressDialog_Resume,(self,) + _args, _kwargs) + val = cmndlgsc.wxProgressDialog_Resume(self, *_args, **_kwargs) return val def __repr__(self): - return "" % (self.this,) + return "<%s.%s instance; proxy of C++ wxProgressDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) class wxProgressDialog(wxProgressDialogPtr): def __init__(self,*_args,**_kwargs): - self.this = apply(cmndlgsc.new_wxProgressDialog,_args,_kwargs) + self.this = cmndlgsc.new_wxProgressDialog(*_args,**_kwargs) self.thisown = 1 self._setOORInfo(self) @@ -369,32 +395,32 @@ class wxFindDialogEventPtr(wxCommandEventPtr): self.this = this self.thisown = 0 def GetFlags(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFindDialogEvent_GetFlags,(self,) + _args, _kwargs) + val = cmndlgsc.wxFindDialogEvent_GetFlags(self, *_args, **_kwargs) return val def GetFindString(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFindDialogEvent_GetFindString,(self,) + _args, _kwargs) + val = cmndlgsc.wxFindDialogEvent_GetFindString(self, *_args, **_kwargs) return val def GetReplaceString(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFindDialogEvent_GetReplaceString,(self,) + _args, _kwargs) + val = cmndlgsc.wxFindDialogEvent_GetReplaceString(self, *_args, **_kwargs) return val def GetDialog(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFindDialogEvent_GetDialog,(self,) + _args, _kwargs) + val = cmndlgsc.wxFindDialogEvent_GetDialog(self, *_args, **_kwargs) if val: val = wxFindReplaceDialogPtr(val) return val def SetFlags(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFindDialogEvent_SetFlags,(self,) + _args, _kwargs) + val = cmndlgsc.wxFindDialogEvent_SetFlags(self, *_args, **_kwargs) return val def SetFindString(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFindDialogEvent_SetFindString,(self,) + _args, _kwargs) + val = cmndlgsc.wxFindDialogEvent_SetFindString(self, *_args, **_kwargs) return val def SetReplaceString(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFindDialogEvent_SetReplaceString,(self,) + _args, _kwargs) + val = cmndlgsc.wxFindDialogEvent_SetReplaceString(self, *_args, **_kwargs) return val def __repr__(self): - return "" % (self.this,) + return "<%s.%s instance; proxy of C++ wxFindDialogEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) class wxFindDialogEvent(wxFindDialogEventPtr): def __init__(self,*_args,**_kwargs): - self.this = apply(cmndlgsc.new_wxFindDialogEvent,_args,_kwargs) + self.this = cmndlgsc.new_wxFindDialogEvent(*_args,**_kwargs) self.thisown = 1 @@ -404,32 +430,35 @@ class wxFindReplaceDataPtr(wxObjectPtr): 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) + val = cmndlgsc.wxFindReplaceData_GetFindString(self, *_args, **_kwargs) return val def GetReplaceString(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFindReplaceData_GetReplaceString,(self,) + _args, _kwargs) + val = cmndlgsc.wxFindReplaceData_GetReplaceString(self, *_args, **_kwargs) return val def GetFlags(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFindReplaceData_GetFlags,(self,) + _args, _kwargs) + val = cmndlgsc.wxFindReplaceData_GetFlags(self, *_args, **_kwargs) return val def SetFlags(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFindReplaceData_SetFlags,(self,) + _args, _kwargs) + val = cmndlgsc.wxFindReplaceData_SetFlags(self, *_args, **_kwargs) return val def SetFindString(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFindReplaceData_SetFindString,(self,) + _args, _kwargs) + val = cmndlgsc.wxFindReplaceData_SetFindString(self, *_args, **_kwargs) return val def SetReplaceString(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFindReplaceData_SetReplaceString,(self,) + _args, _kwargs) + val = cmndlgsc.wxFindReplaceData_SetReplaceString(self, *_args, **_kwargs) return val def __repr__(self): - return "" % (self.this,) + return "<%s.%s instance; proxy of C++ wxFindReplaceData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) class wxFindReplaceData(wxFindReplaceDataPtr): def __init__(self,*_args,**_kwargs): - self.this = apply(cmndlgsc.new_wxFindReplaceData,_args,_kwargs) + self.this = cmndlgsc.new_wxFindReplaceData(*_args,**_kwargs) self.thisown = 1 @@ -440,27 +469,27 @@ class wxFindReplaceDialogPtr(wxDialogPtr): self.this = this self.thisown = 0 def Create(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFindReplaceDialog_Create,(self,) + _args, _kwargs) + val = cmndlgsc.wxFindReplaceDialog_Create(self, *_args, **_kwargs) return val def GetData(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFindReplaceDialog_GetData,(self,) + _args, _kwargs) + val = cmndlgsc.wxFindReplaceDialog_GetData(self, *_args, **_kwargs) if val: val = wxFindReplaceDataPtr(val) return val def SetData(self, *_args, **_kwargs): - val = apply(cmndlgsc.wxFindReplaceDialog_SetData,(self,) + _args, _kwargs) + val = cmndlgsc.wxFindReplaceDialog_SetData(self, *_args, **_kwargs) return val def __repr__(self): - return "" % (self.this,) + return "<%s.%s instance; proxy of C++ wxFindReplaceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) class wxFindReplaceDialog(wxFindReplaceDialogPtr): def __init__(self,*_args,**_kwargs): - self.this = apply(cmndlgsc.new_wxFindReplaceDialog,_args,_kwargs) + self.this = cmndlgsc.new_wxFindReplaceDialog(*_args,**_kwargs) self.thisown = 1 self._setOORInfo(self) def wxPreFindReplaceDialog(*_args,**_kwargs): - val = wxFindReplaceDialogPtr(apply(cmndlgsc.new_wxPreFindReplaceDialog,_args,_kwargs)) + val = wxFindReplaceDialogPtr(cmndlgsc.new_wxPreFindReplaceDialog(*_args,**_kwargs)) val.thisown = 1 val._setOORInfo(val) return val @@ -474,6 +503,7 @@ def wxPreFindReplaceDialog(*_args,**_kwargs): #-------------- VARIABLE WRAPPERS ------------------ +wxCHOICEDLG_STYLE = cmndlgsc.wxCHOICEDLG_STYLE wxFR_DOWN = cmndlgsc.wxFR_DOWN wxFR_WHOLEWORD = cmndlgsc.wxFR_WHOLEWORD wxFR_MATCHCASE = cmndlgsc.wxFR_MATCHCASE