X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b26e2dc41d9f5b387897a6cc6fba58d6957fd5cd..eda61172d06869da6cb1cfc9700cd44962078e5c:/utils/wxPython/src/gtk/cmndlgs.py diff --git a/utils/wxPython/src/gtk/cmndlgs.py b/utils/wxPython/src/gtk/cmndlgs.py index 8360f8fd76..f8fa89db18 100644 --- a/utils/wxPython/src/gtk/cmndlgs.py +++ b/utils/wxPython/src/gtk/cmndlgs.py @@ -6,6 +6,15 @@ from misc import * from gdi import * from windows import * + +from frames import * + +from stattool import * + +from controls import * + +from events import * +import wx class wxColourDataPtr : def __init__(self,this): self.this = this @@ -51,7 +60,6 @@ class wxColourDialogPtr(wxDialogPtr): def GetColourData(self): val = cmndlgsc.wxColourDialog_GetColourData(self.this) val = wxColourDataPtr(val) - val.thisown = 1 return val def ShowModal(self): val = cmndlgsc.wxColourDialog_ShowModal(self.this) @@ -66,7 +74,44 @@ class wxColourDialog(wxColourDialogPtr): args = tuple(argl) self.this = apply(cmndlgsc.new_wxColourDialog,(arg0.this,)+args) self.thisown = 1 - wxp._StdDialogCallbacks(self) + wx._StdDialogCallbacks(self) + + + + +class wxDirDialogPtr(wxDialogPtr): + def __init__(self,this): + self.this = this + self.thisown = 0 + def GetPath(self): + val = cmndlgsc.wxDirDialog_GetPath(self.this) + return val + def GetMessage(self): + val = cmndlgsc.wxDirDialog_GetMessage(self.this) + return val + def GetStyle(self): + val = cmndlgsc.wxDirDialog_GetStyle(self.this) + return val + def SetMessage(self,arg0): + val = cmndlgsc.wxDirDialog_SetMessage(self.this,arg0) + return val + def SetPath(self,arg0): + val = cmndlgsc.wxDirDialog_SetPath(self.this,arg0) + return val + def ShowModal(self): + val = cmndlgsc.wxDirDialog_ShowModal(self.this) + return val + def __repr__(self): + return "" +class wxDirDialog(wxDirDialogPtr): + def __init__(self,arg0,*args) : + argl = map(None,args) + try: argl[3] = argl[3].this + except: pass + args = tuple(argl) + self.this = apply(cmndlgsc.new_wxDirDialog,(arg0.this,)+args) + self.thisown = 1 + wx._StdDialogCallbacks(self) @@ -130,7 +175,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) @@ -161,7 +206,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) @@ -189,7 +234,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) @@ -276,7 +321,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) @@ -298,7 +343,31 @@ 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) + + + + +class wxProgressDialogPtr(wxFramePtr): + def __init__(self,this): + self.this = this + self.thisown = 0 + def Update(self,*args): + val = apply(cmndlgsc.wxProgressDialog_Update,(self.this,)+args) + return val + def Resume(self): + val = cmndlgsc.wxProgressDialog_Resume(self.this) + return val + def __repr__(self): + return "" +class wxProgressDialog(wxProgressDialogPtr): + def __init__(self,arg0,arg1,*args) : + argl = map(None,args) + try: argl[1] = argl[1].this + except: pass + args = tuple(argl) + self.this = apply(cmndlgsc.new_wxProgressDialog,(arg0,arg1,)+args) + self.thisown = 1