]> git.saurik.com Git - wxWidgets.git/commitdiff
Updates for CreateButtonSizer
authorRobin Dunn <robin@alldunn.com>
Fri, 20 Jan 2006 17:26:29 +0000 (17:26 +0000)
committerRobin Dunn <robin@alldunn.com>
Fri, 20 Jan 2006 17:26:29 +0000 (17:26 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37013 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/_toplvl.i

index 6661972137ae88697c5eff6768524b78c484a8f3..7938545b179932d7c29210c23425af28efd0fd44 100644 (file)
@@ -279,6 +279,14 @@ MustHaveApp(wxDialog);
 
 class wxDialog : public wxTopLevelWindow {
 public:
+
+    enum
+    {
+        // all flags allowed in wxDialogBase::CreateButtonSizer()
+        ButtonSizerFlags = wxOK|wxCANCEL|wxYES|wxNO|wxHELP|wxNO_DEFAULT
+    };
+
+    
     %pythonAppend wxDialog   "self._setOORInfo(self)"
     %pythonAppend wxDialog() ""
     %typemap(out) wxDialog*;    // turn off this typemap
@@ -314,7 +322,9 @@ public:
     wxSizer* CreateTextSizer( const wxString &message );
 
     // places buttons into a horizontal wxBoxSizer
-    wxSizer* CreateButtonSizer( long flags );
+    wxSizer* CreateButtonSizer( long flags,
+                                bool separated = false,
+                                wxCoord distance = 0  );
     wxStdDialogButtonSizer* CreateStdDialogButtonSizer( long flags );
 
     //void SetModal(bool flag);