]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_toplvl.i
Oops, CenteronScreen wasn't really removed, just moved to wxTopLevelWindow
[wxWidgets.git] / wxPython / src / _toplvl.i
index 7b9786d46c104d46c038fc281b38bdba4213197d..3c27d1b5afa102d014eddddb6f219bd598b45330 100644 (file)
@@ -144,6 +144,11 @@ public:
         bool MacGetMetalAppearance() const    { /*wxPyRaiseNotImplemented();*/ return false; }
     }
 #endif
+
+    DocDeclStr(
+        void , CenterOnScreen(int dir = wxBOTH),
+        "Center the window on screen", "");
+    %pythoncode { CentreOnScreen = CenterOnScreen }
 };
 
 
@@ -317,6 +322,14 @@ public:
     void SetReturnCode(int returnCode);
     int GetReturnCode() const;
 
+    // The identifier for the affirmative button
+    void SetAffirmativeId(int affirmativeId);
+    int GetAffirmativeId() const;
+
+    // Identifier for Esc key translation
+    void SetEscapeId(int escapeId);
+    int GetEscapeId() const;
+
     // splits text up at newlines and places the
     // lines into a vertical wxBoxSizer
     wxSizer* CreateTextSizer( const wxString &message );