X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/76612558942ee9fa8829a60f5fba17b754012a30..d34ad9ea8910361e3d8443ddda0ee5554dc6480d:/wxPython/src/_toplvl.i diff --git a/wxPython/src/_toplvl.i b/wxPython/src/_toplvl.i index 7578a8f837..4a95c46301 100644 --- a/wxPython/src/_toplvl.i +++ b/wxPython/src/_toplvl.i @@ -130,6 +130,9 @@ public: virtual void SetTitle(const wxString& title); virtual wxString GetTitle() const; + // enable/disable close button [x] + virtual bool EnableCloseButton(bool enable ); + // Set the shape of the window to the given region. // Returns True if the platform supports this feature // (and the operation is successful.) @@ -168,15 +171,6 @@ public: "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 - - DocDeclStr( virtual wxWindow *, GetDefaultItem() const,