X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/26e335b844ea77f6b3e62f9daffe7063f2cede7d..71aba8333cc915afff9e740c944f7fa7247abacb:/wxPython/src/mdi.i diff --git a/wxPython/src/mdi.i b/wxPython/src/mdi.i index 8276334643..7c17fcea71 100644 --- a/wxPython/src/mdi.i +++ b/wxPython/src/mdi.i @@ -32,6 +32,13 @@ //---------------------------------------------------------------------- +%{ + // Put some wx default wxChar* values into wxStrings. + DECLARE_DEF_STRING(FrameNameStr); +%} + +//---------------------------------------------------------------------- + const int IDM_WINDOWTILE = 4001; const int IDM_WINDOWTILEHOR = 4001; const int IDM_WINDOWCASCADE = 4002; @@ -51,7 +58,7 @@ public: const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL, - const char* name = "frame"); + const wxString& name = wxPyFrameNameStr); %name(wxPreMDIParentFrame)wxMDIParentFrame(); bool Create(wxWindow *parent, @@ -60,7 +67,7 @@ public: const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL, - const char* name = "frame"); + const wxString& name = wxPyFrameNameStr); %pragma(python) addtomethod = "__init__:self._setOORInfo(self)" %pragma(python) addtomethod = "wxPreMDIParentFrame:val._setOORInfo(val)" @@ -95,7 +102,7 @@ public: const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, - const char* name = "frame"); + const wxString& name = wxPyFrameNameStr); %name(wxPreMDIChildFrame)wxMDIChildFrame(); bool Create(wxMDIParentFrame* parent, @@ -104,7 +111,7 @@ public: const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, - const char* name = "frame"); + const wxString& name = wxPyFrameNameStr); %pragma(python) addtomethod = "__init__:self._setOORInfo(self)" %pragma(python) addtomethod = "wxPreMDIChildFrame:val._setOORInfo(val)"