X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9c039d08bfbb59c0abcbc705fb49f9b2cb321edf..9f06bcb3b8aea7aa709754a217c26e94fe2d5954:/utils/wxPython/src/msw/cmndlgs.py diff --git a/utils/wxPython/src/msw/cmndlgs.py b/utils/wxPython/src/msw/cmndlgs.py index 14ef8306b0..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,7 +66,7 @@ class wxColourDialog(wxColourDialogPtr): args = tuple(argl) self.this = apply(cmndlgsc.new_wxColourDialog,(arg0.this,)+args) self.thisown = 1 - wxp._StdDialogCallbacks(self) + wx._StdDialogCallbacks(self) @@ -102,7 +103,7 @@ class wxDirDialog(wxDirDialogPtr): args = tuple(argl) self.this = apply(cmndlgsc.new_wxDirDialog,(arg0.this,)+args) self.thisown = 1 - wxp._StdDialogCallbacks(self) + wx._StdDialogCallbacks(self) @@ -166,7 +167,7 @@ class wxFileDialog(wxFileDialogPtr): args = tuple(argl) self.this = apply(cmndlgsc.new_wxFileDialog,(arg0.this,)+args) self.thisown = 1 - wxp._StdDialogCallbacks(self) + wx._StdDialogCallbacks(self) @@ -197,7 +198,7 @@ class wxSingleChoiceDialog(wxSingleChoiceDialogPtr): args = tuple(argl) self.this = apply(cmndlgsc.new_wxSingleChoiceDialog,(arg0.this,arg1,arg2,arg3,)+args) self.thisown = 1 - wxp._StdDialogCallbacks(self) + wx._StdDialogCallbacks(self) @@ -225,7 +226,7 @@ class wxTextEntryDialog(wxTextEntryDialogPtr): args = tuple(argl) self.this = apply(cmndlgsc.new_wxTextEntryDialog,(arg0.this,arg1,)+args) self.thisown = 1 - wxp._StdDialogCallbacks(self) + wx._StdDialogCallbacks(self) @@ -312,7 +313,7 @@ class wxFontDialog(wxFontDialogPtr): args = tuple(argl) self.this = apply(cmndlgsc.new_wxFontDialog,(arg0.this,)+args) self.thisown = 1 - wxp._StdDialogCallbacks(self) + wx._StdDialogCallbacks(self) @@ -443,7 +444,7 @@ class wxPageSetupDialog(wxPageSetupDialogPtr): args = tuple(argl) self.this = apply(cmndlgsc.new_wxPageSetupDialog,(arg0.this,)+args) self.thisown = 1 - wxp._StdDialogCallbacks(self) + wx._StdDialogCallbacks(self) @@ -539,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) @@ -553,7 +555,7 @@ class wxPrintDialog(wxPrintDialogPtr): args = tuple(argl) self.this = apply(cmndlgsc.new_wxPrintDialog,(arg0.this,)+args) self.thisown = 1 - wxp._StdDialogCallbacks(self) + wx._StdDialogCallbacks(self) @@ -575,7 +577,7 @@ class wxMessageDialog(wxMessageDialogPtr): args = tuple(argl) self.this = apply(cmndlgsc.new_wxMessageDialog,(arg0.this,arg1,)+args) self.thisown = 1 - wxp._StdDialogCallbacks(self) + wx._StdDialogCallbacks(self)