]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/Dialog.py
apparently the check for too small rect is needed not only with wxNB_MULTILINE (see...
[wxWidgets.git] / wxPython / demo / Dialog.py
index 5cef4815eac37e039e45e9ec2b7b62a72c0183f0..756c730020962e07cd6cd742e535d277fb8c4b4f 100644 (file)
@@ -71,17 +71,17 @@ class TestDialog(wx.Dialog):
         
         btn = wx.Button(self, wx.ID_OK)
         btn.SetHelpText("The OK button completes the dialog")
+        btn.SetDefault()
         btnsizer.AddButton(btn)
 
         btn = wx.Button(self, wx.ID_CANCEL)
         btn.SetHelpText("The Cancel button cnacels the dialog. (Cool, huh?)")
         btnsizer.AddButton(btn)
-        btnsizer.Finalise()
+        btnsizer.Realize()
 
         sizer.Add(btnsizer, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5)
 
         self.SetSizer(sizer)
-        self.SetAutoLayout(True)
         sizer.Fit(self)
 
 #---------------------------------------------------------------------------