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