X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0f9da07463f1134a2f8f51ee581fabcf968fa5c5..42f8298f6f42d5d63bb3caf65682b7d9d9f8b702:/wxPython/demo/Dialog.py diff --git a/wxPython/demo/Dialog.py b/wxPython/demo/Dialog.py index 5cef4815ea..8897c26e86 100644 --- a/wxPython/demo/Dialog.py +++ b/wxPython/demo/Dialog.py @@ -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)