X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/137b5242b1834999da2883c7a68fbde28c6fba37..b9ac87bc5cbe46227195e32c44e25831f8206e3c:/wxPython/src/cmndlgs.i?ds=sidebyside diff --git a/wxPython/src/cmndlgs.i b/wxPython/src/cmndlgs.i index 5ab14a8693..b69e07c4b0 100644 --- a/wxPython/src/cmndlgs.i +++ b/wxPython/src/cmndlgs.i @@ -41,6 +41,8 @@ %{ // Put some wx default wxChar* values into wxStrings. DECLARE_DEF_STRING(FileSelectorPromptStr); + DECLARE_DEF_STRING(DirSelectorPromptStr); + DECLARE_DEF_STRING(DirDialogNameStr); DECLARE_DEF_STRING(FileSelectorDefaultWildcardStr); DECLARE_DEF_STRING(GetTextFromUserPromptStr); DECLARE_DEF_STRING(MessageBoxCaptionStr); @@ -80,10 +82,12 @@ public: class wxDirDialog : public wxDialog { public: wxDirDialog(wxWindow* parent, - const wxString& message = wxPyFileSelectorPromptStr, + const wxString& message = wxPyDirSelectorPromptStr, const wxString& defaultPath = wxPyEmptyString, long style = 0, - const wxPoint& pos = wxDefaultPosition); + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, + const wxString& name = wxPyDirDialogNameStr); %pragma(python) addtomethod = "__init__:self._setOORInfo(self)" @@ -240,7 +244,7 @@ public: class wxFontDialog : public wxDialog { public: - wxFontDialog(wxWindow* parent, wxFontData* data); + wxFontDialog(wxWindow* parent, const wxFontData& data); %pragma(python) addtomethod = "__init__:self._setOORInfo(self)" wxFontData& GetFontData();