X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/26e335b844ea77f6b3e62f9daffe7063f2cede7d..32b70aec1ff90877ae0ce2ce82967f698218fbdc:/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)"