X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4a983d2c630086e0a3251be1fcf4dd049b234119..90fb367e86c1e82367f8d4781b8c1bdc31a26593:/wxPython/src/_toplvl.i diff --git a/wxPython/src/_toplvl.i b/wxPython/src/_toplvl.i index e9e6c60fd1..8bdbbb2a01 100644 --- a/wxPython/src/_toplvl.i +++ b/wxPython/src/_toplvl.i @@ -53,14 +53,19 @@ enum wxFRAME_EX_METAL, wxDIALOG_EX_METAL, + wxWS_EX_CONTEXTHELP, // Obsolete wxDIALOG_MODAL, wxDIALOG_MODELESS, wxUSER_COLOURS, wxNO_3D, + + wxFRAME_EX_CONTEXTHELP, + wxDIALOG_EX_CONTEXTHELP, }; + enum { wxFULLSCREEN_NOMENUBAR, @@ -162,6 +167,37 @@ public: void , CenterOnScreen(int dir = wxBOTH), "Center the window on screen", ""); %pythoncode { CentreOnScreen = CenterOnScreen } + +#ifdef __WXMSW__ + bool EnableCloseButton(bool enable = true); +#else + %extend { + bool EnableCloseButton(bool enable = true) { return false; } + } +#endif + + virtual bool SetTransparent(byte alpha); + virtual bool CanSetTransparent(); + + + + DocDeclStr( + virtual wxWindow *, GetDefaultItem() const, + "Get the default child of this parent, i.e. the one which is activated +by pressing such as the OK button on a wx.Dialog.", ""); + + DocDeclStr( + virtual wxWindow *, SetDefaultItem(wxWindow * child), + "Set this child as default, return the old default.", ""); + + DocDeclStr( + virtual void , SetTmpDefaultItem(wxWindow * win), + "Set this child as temporary default", ""); + + DocDeclStr( + virtual wxWindow *, GetTmpDefaultItem() const, + "Return the temporary default item, which can be None.", ""); + };