]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/Dialog.py
warning fix
[wxWidgets.git] / wxPython / demo / Dialog.py
index 5cef4815eac37e039e45e9ec2b7b62a72c0183f0..8897c26e86a40dd35631bda2bea879b28e7a2d7e 100644 (file)
@@ -71,12 +71,13 @@ 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)