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:
@@ -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)
|
||||
|
@@ -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.", "");
|
||||
|
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user