diff --git a/wxPython/docs/CHANGES.txt b/wxPython/docs/CHANGES.txt index 56baa6b25f..f82c7145f9 100644 --- a/wxPython/docs/CHANGES.txt +++ b/wxPython/docs/CHANGES.txt @@ -26,7 +26,7 @@ disturb existing code. For example, instead of writing:: you can now write:: - sizer.AddF(ctrl, wx.SizerFlags().Expand().Border(10)) + sizer.AddF(ctrl, wx.SizerFlags().Expand().Border(wx.ALL,10)) Will Sadkin provided a patch for the wx.lib.masked package that fixes diff --git a/wxPython/src/_sizers.i b/wxPython/src/_sizers.i index d72414702a..d86fae7441 100644 --- a/wxPython/src/_sizers.i +++ b/wxPython/src/_sizers.i @@ -31,13 +31,13 @@ parameters using the named methods instead. For example, instead of:: you can now write:: - sizer.AddF(ctrl, wx.SizerFlags().Expand().Border(10)) + sizer.AddF(ctrl, wx.SizerFlags().Expand().Border(wx.ALL, 10)) This is more readable and also allows you to create wx.SizerFlags objects which can be reused for several sizer items.:: flagsExpand = wx.SizerFlags(1) - flagsExpand.Expand().Border(10) + flagsExpand.Expand().Border(wx.ALL, 10) sizer.AddF(ctrl1, flagsExpand) sizer.AddF(ctrl2, flagsExpand) diff --git a/wxPython/src/gtk/_core.py b/wxPython/src/gtk/_core.py index d9679b456c..2b8391d1e4 100644 --- a/wxPython/src/gtk/_core.py +++ b/wxPython/src/gtk/_core.py @@ -11590,13 +11590,13 @@ class SizerFlags(object): you can now write:: - sizer.AddF(ctrl, wx.SizerFlags().Expand().Border(10)) + sizer.AddF(ctrl, wx.SizerFlags().Expand().Border(wx.ALL, 10)) This is more readable and also allows you to create wx.SizerFlags objects which can be reused for several sizer items.:: flagsExpand = wx.SizerFlags(1) - flagsExpand.Expand().Border(10) + flagsExpand.Expand().Border(wx.ALL, 10) sizer.AddF(ctrl1, flagsExpand) sizer.AddF(ctrl2, flagsExpand) diff --git a/wxPython/src/mac/_core.py b/wxPython/src/mac/_core.py index d9679b456c..2b8391d1e4 100644 --- a/wxPython/src/mac/_core.py +++ b/wxPython/src/mac/_core.py @@ -11590,13 +11590,13 @@ class SizerFlags(object): you can now write:: - sizer.AddF(ctrl, wx.SizerFlags().Expand().Border(10)) + sizer.AddF(ctrl, wx.SizerFlags().Expand().Border(wx.ALL, 10)) This is more readable and also allows you to create wx.SizerFlags objects which can be reused for several sizer items.:: flagsExpand = wx.SizerFlags(1) - flagsExpand.Expand().Border(10) + flagsExpand.Expand().Border(wx.ALL, 10) sizer.AddF(ctrl1, flagsExpand) sizer.AddF(ctrl2, flagsExpand) diff --git a/wxPython/src/msw/_core.py b/wxPython/src/msw/_core.py index 8eb21784b9..5a7b2d9916 100644 --- a/wxPython/src/msw/_core.py +++ b/wxPython/src/msw/_core.py @@ -11594,13 +11594,13 @@ class SizerFlags(object): you can now write:: - sizer.AddF(ctrl, wx.SizerFlags().Expand().Border(10)) + sizer.AddF(ctrl, wx.SizerFlags().Expand().Border(wx.ALL, 10)) This is more readable and also allows you to create wx.SizerFlags objects which can be reused for several sizer items.:: flagsExpand = wx.SizerFlags(1) - flagsExpand.Expand().Border(10) + flagsExpand.Expand().Border(wx.ALL, 10) sizer.AddF(ctrl1, flagsExpand) sizer.AddF(ctrl2, flagsExpand)