X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ecc08ead918856a70559204f9b5daacc49385eaa..b01fb5c34046e6595d1a02e099fd70aab3ed52ed:/wxPython/src/frames.i diff --git a/wxPython/src/frames.i b/wxPython/src/frames.i index f115e7f05a..7f76d6e0c4 100644 --- a/wxPython/src/frames.i +++ b/wxPython/src/frames.i @@ -16,7 +16,6 @@ %{ #include "helpers.h" #include -#include %} //---------------------------------------------------------------------- @@ -71,6 +70,8 @@ public: long style = wxDEFAULT_FRAME_STYLE, const char* name = "frame"); + %pragma(python) addtomethod = "__init__:self._setOORInfo(self)" + %pragma(python) addtomethod = "wxPreTopLevelWindow:val._setOORInfo(val)" // maximize = TRUE => maximize, otherwise - restore virtual void Maximize(bool maximize = TRUE); @@ -88,7 +89,7 @@ public: virtual bool IsIconized() const; // get the frame icon - const wxIcon& GetIcon() const; + wxIcon GetIcon() const; // set the frame icon virtual void SetIcon(const wxIcon& icon); @@ -122,6 +123,9 @@ public: long style = wxDEFAULT_FRAME_STYLE, char* name = "frame"); + %pragma(python) addtomethod = "__init__:self._setOORInfo(self)" + %pragma(python) addtomethod = "wxPreFrame:val._setOORInfo(val)" + wxPoint GetClientAreaOrigin(); void SetMenuBar(wxMenuBar *menubar); @@ -183,6 +187,9 @@ public: long style = wxDEFAULT_DIALOG_STYLE, const char* name = "dialogBox"); + %pragma(python) addtomethod = "__init__:self._setOORInfo(self)" + %pragma(python) addtomethod = "wxPreDialog:val._setOORInfo(val)" + void Centre(int direction = wxBOTH); void EndModal(int retCode); void SetModal(bool flag); @@ -214,17 +221,9 @@ public: const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, char* name = "frame"); -}; - -//--------------------------------------------------------------------------- - -class wxTipWindow : public wxFrame -{ -public: - wxTipWindow(wxWindow *parent, - const wxString& text, - wxCoord maxLength = 100); + %pragma(python) addtomethod = "__init__:self._setOORInfo(self)" + %pragma(python) addtomethod = "wxPreMiniFrame:val._setOORInfo(val)" }; @@ -234,3 +233,4 @@ public: +