X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8ab979d7382a718bc0e20a7798f2da4b02286c89..f37615d7896e9b976c5c251e567570c394f19cf8:/utils/wxPython/src/msw/cmndlgs.py diff --git a/utils/wxPython/src/msw/cmndlgs.py b/utils/wxPython/src/msw/cmndlgs.py index 32be47b45c..39dd99819e 100644 --- a/utils/wxPython/src/msw/cmndlgs.py +++ b/utils/wxPython/src/msw/cmndlgs.py @@ -6,6 +6,7 @@ from misc import * from gdi import * from windows import * +import wx class wxColourDataPtr : def __init__(self,this): self.this = this @@ -65,6 +66,7 @@ class wxColourDialog(wxColourDialogPtr): args = tuple(argl) self.this = apply(cmndlgsc.new_wxColourDialog,(arg0.this,)+args) self.thisown = 1 + wx._StdDialogCallbacks(self) @@ -101,6 +103,7 @@ class wxDirDialog(wxDirDialogPtr): args = tuple(argl) self.this = apply(cmndlgsc.new_wxDirDialog,(arg0.this,)+args) self.thisown = 1 + wx._StdDialogCallbacks(self) @@ -164,6 +167,7 @@ class wxFileDialog(wxFileDialogPtr): args = tuple(argl) self.this = apply(cmndlgsc.new_wxFileDialog,(arg0.this,)+args) self.thisown = 1 + wx._StdDialogCallbacks(self) @@ -194,6 +198,7 @@ class wxSingleChoiceDialog(wxSingleChoiceDialogPtr): args = tuple(argl) self.this = apply(cmndlgsc.new_wxSingleChoiceDialog,(arg0.this,arg1,arg2,arg3,)+args) self.thisown = 1 + wx._StdDialogCallbacks(self) @@ -221,6 +226,7 @@ class wxTextEntryDialog(wxTextEntryDialogPtr): args = tuple(argl) self.this = apply(cmndlgsc.new_wxTextEntryDialog,(arg0.this,arg1,)+args) self.thisown = 1 + wx._StdDialogCallbacks(self) @@ -307,6 +313,7 @@ class wxFontDialog(wxFontDialogPtr): args = tuple(argl) self.this = apply(cmndlgsc.new_wxFontDialog,(arg0.this,)+args) self.thisown = 1 + wx._StdDialogCallbacks(self) @@ -437,6 +444,7 @@ class wxPageSetupDialog(wxPageSetupDialogPtr): args = tuple(argl) self.this = apply(cmndlgsc.new_wxPageSetupDialog,(arg0.this,)+args) self.thisown = 1 + wx._StdDialogCallbacks(self) @@ -532,6 +540,7 @@ class wxPrintDialogPtr(wxDialogPtr): def GetPrintDC(self): val = cmndlgsc.wxPrintDialog_GetPrintDC(self.this) val = wxDCPtr(val) + val.thisown = 1 return val def ShowModal(self): val = cmndlgsc.wxPrintDialog_ShowModal(self.this) @@ -546,6 +555,7 @@ class wxPrintDialog(wxPrintDialogPtr): args = tuple(argl) self.this = apply(cmndlgsc.new_wxPrintDialog,(arg0.this,)+args) self.thisown = 1 + wx._StdDialogCallbacks(self) @@ -567,6 +577,7 @@ class wxMessageDialog(wxMessageDialogPtr): args = tuple(argl) self.this = apply(cmndlgsc.new_wxMessageDialog,(arg0.this,arg1,)+args) self.thisown = 1 + wx._StdDialogCallbacks(self)