wxStdButtonSizer Finalise --> Realize

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32146 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2005-02-18 17:49:03 +00:00
parent 1181ee3f2d
commit 718903fe64
8 changed files with 11 additions and 11 deletions

View File

@@ -193,7 +193,7 @@ class TestValidateDialog(wx.Dialog):
b.SetDefault()
buttons.AddButton(b)
buttons.AddButton(wx.Button(self, wx.ID_CANCEL, "Cancel"))
buttons.Finalise()
buttons.Realize()
border = wx.BoxSizer(wx.VERTICAL)
border.Add(fgs, 1, wx.GROW|wx.ALL, 25)

View File

@@ -1270,7 +1270,7 @@ DocStr(wxStdDialogButtonSizer,
"A special sizer that knows how to order and position standard buttons
in order to conform to the current platform's standards. You simply
need to add each `wx.Button` to the sizer, and be sure to create the
buttons using the standard ID's. Then call `Finalize` and the sizer
buttons using the standard ID's. Then call `Realize` and the sizer
will take care of the rest.
", "");
@@ -1287,7 +1287,7 @@ public:
method in the base class.", "");
DocDeclStr(
void , Finalise(),
void , Realize(),
"This funciton needs to be called after all the buttons have been added
to the sizer. It will reorder them and position them in a platform
specifc manner.", "");

View File

@@ -77,7 +77,7 @@ class MultipleChoiceDialog(wx.Dialog):
btnsizer = wx.StdDialogButtonSizer()
btnsizer.AddButton(ok)
btnsizer.AddButton(cancel)
btnsizer.Finalise()
btnsizer.Realize()
dlgsizer.Add(btnsizer, 0, wx.ALL | wx.ALIGN_RIGHT, 4)