X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3ca6a5f04692678cd2d9f3ea0843fc3f5a0b254f..45eb5249574b0f1f50db5e6a7eb5bba43fd99cb9:/wxPython/src/mdi.i?ds=sidebyside diff --git a/wxPython/src/mdi.i b/wxPython/src/mdi.i index 7d68b700d0..21b4336e5e 100644 --- a/wxPython/src/mdi.i +++ b/wxPython/src/mdi.i @@ -37,12 +37,19 @@ public: wxMDIParentFrame(wxWindow *parent, const wxWindowID id, const wxString& title, - const wxPoint& pos = wxPyDefaultPosition, - const wxSize& size = wxPyDefaultSize, + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL, const char* name = "frame"); + %name(wxPreMDIParentFrame)wxMDIParentFrame(); - %pragma(python) addtomethod = "__init__:#wx._StdFrameCallbacks(self)" + bool Create(wxWindow *parent, + const wxWindowID id, + const wxString& title, + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, + long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL, + const char* name = "frame"); void ActivateNext(); void ActivatePrevious(); @@ -71,12 +78,20 @@ public: wxMDIChildFrame(wxMDIParentFrame* parent, const wxWindowID id, const wxString& title, - const wxPoint& pos = wxPyDefaultPosition, - const wxSize& size = wxPyDefaultSize, + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, + long style = wxDEFAULT_FRAME_STYLE, + const char* name = "frame"); + %name(wxPreMDIChildFrame)wxMDIChildFrame(); + + bool Create(wxMDIParentFrame* parent, + const wxWindowID id, + const wxString& title, + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, const char* name = "frame"); - %pragma(python) addtomethod = "__init__:#wx._StdFrameCallbacks(self)" void Activate(); void Maximize(bool maximize); @@ -90,6 +105,13 @@ public: class wxMDIClientWindow : public wxWindow { public: wxMDIClientWindow(wxMDIParentFrame* parent, long style = 0); + %name(wxPreMDIClientWindow)wxMDIClientWindow(); + + %pragma(python) addtomethod = "__init__:#wx._StdWindowCallbacks(self)" + %pragma(python) addtomethod = "__init__:#wx._StdOnScrollCallbacks(self)" + + bool Create(wxMDIParentFrame* parent, long style = 0); + %pragma(python) addtomethod = "__init__:#wx._StdWindowCallbacks(self)" %pragma(python) addtomethod = "__init__:#wx._StdOnScrollCallbacks(self)" };