diff --git a/unittests/test_sizer.py b/unittests/test_sizer.py index af432fe5..29d1c60c 100644 --- a/unittests/test_sizer.py +++ b/unittests/test_sizer.py @@ -56,7 +56,7 @@ class sizer_Tests(wtc.WidgetTestCase): def test_sizerFlags(self): bs = wx.BoxSizer() bs.Add(wx.Panel(self.frame), - wx.SizerFlags(2).Border(wx.ALL, 5).Align(wx.ALIGN_RIGHT)) + wx.SizerFlags(2).Border(wx.ALL, 5).Align(wx.ALIGN_TOP)) def test_sizerAddMany(self): bs = wx.BoxSizer() diff --git a/wx/lib/agw/fmcustomizedlg.py b/wx/lib/agw/fmcustomizedlg.py index c4078529..db9ad439 100644 --- a/wx/lib/agw/fmcustomizedlg.py +++ b/wx/lib/agw/fmcustomizedlg.py @@ -219,7 +219,7 @@ class FMCustomizeDlg(wx.Dialog): hsizer = wx.BoxSizer(wx.HORIZONTAL) # add a separator between the book & the buttons area - hsizer.Add(wx.Button(self, wx.ID_OK, _("&Close")), 0, wx.EXPAND | wx.ALIGN_RIGHT) + hsizer.Add(wx.Button(self, wx.ID_OK, _("&Close")), 0, wx.EXPAND) sz.Add(wx.StaticLine(self), 0, wx.EXPAND | wx.TOP | wx.BOTTOM, 3) sz.Add(hsizer, 0, wx.ALIGN_RIGHT | wx.ALL, 2)