X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8eca4fef106b8327e2e55636de3f68a511a4c392..b734b2cafa686dc22775cdcfc3890f92c245e1b9:/wxPython/demo/Validator.py diff --git a/wxPython/demo/Validator.py b/wxPython/demo/Validator.py index d31296c7be..688712c015 100644 --- a/wxPython/demo/Validator.py +++ b/wxPython/demo/Validator.py @@ -188,11 +188,12 @@ class TestValidateDialog(wx.Dialog): fgs.Add(wx.TextCtrl(self, -1, "", validator = TextObjectValidator())) - buttons = wx.BoxSizer(wx.HORIZONTAL) - b = wx.Button(self, wx.ID_OK, "Okay") + buttons = wx.StdDialogButtonSizer() #wx.BoxSizer(wx.HORIZONTAL) + b = wx.Button(self, wx.ID_OK, "OK") b.SetDefault() - buttons.Add(b, 0, wx.ALL, 10) - buttons.Add(wx.Button(self, wx.ID_CANCEL, "Cancel"), 0, wx.ALL, 10) + buttons.AddButton(b) + buttons.AddButton(wx.Button(self, wx.ID_CANCEL, "Cancel")) + buttons.Finalise() border = wx.BoxSizer(wx.VERTICAL) border.Add(fgs, 1, wx.GROW|wx.ALL, 25)