From cc7c904624b71f13b57493829f73bdfd611c8792 Mon Sep 17 00:00:00 2001 From: pierre Date: Mon, 14 Oct 2024 21:28:53 +0200 Subject: [PATCH] wxpython 4.2 ... --- dialog.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dialog.py b/dialog.py index 333aff1..da6363c 100755 --- a/dialog.py +++ b/dialog.py @@ -957,19 +957,19 @@ class PrefExport(wx.Dialog): box3.Add(self.label_lem, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALIGN_LEFT, 5) self.radio_lem = wx.RadioBox(self, -1, "", choices= [ _("yes"), _("no") ], majorDimension=0, style=wx.RA_SPECIFY_ROWS) box3.Add(self.radio_lem, 0, wx.EXPAND, 5) - sizer.Add(box3, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5) + sizer.Add(box3, 0, wx.GROW|wx.ALL, 5) self.label_txt = wx.StaticText(self, -1, _("Export for ...")) box.Add(self.label_txt, 0, wx.ALIGN_CENTRE|wx.ALL, 5) self.radio_type = wx.RadioBox(self, -1, "", choices=['IRaMuTeQ/ALCESTE', 'Lexico'], majorDimension=0, style=wx.RA_SPECIFY_ROWS) box.Add(self.radio_type, 0, wx.ALIGN_CENTRE|wx.ALL, 5) - sizer.Add(box, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5) + sizer.Add(box, 0, wx.GROW|wx.ALL, 5) box2 = wx.BoxSizer(wx.HORIZONTAL) self.txt2 = wx.StaticText(self, -1, _("Output file")) box2.Add(self.txt2, 0, wx.ALIGN_CENTRE|wx.ALL, 5) self.fbb = filebrowse.FileBrowseButton(self, -1, size=(450, -1), fileMode = 2) box2.Add(self.fbb, 0, wx.ALIGN_CENTRE|wx.ALL, 5) self.fbb.SetLabel("") - sizer.Add(box2, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5) + sizer.Add(box2, 0, wx.GROW|wx.ALL, 5) btnsizer = wx.StdDialogButtonSizer() btn = wx.Button(self, wx.ID_CANCEL) btnsizer.AddButton(btn) @@ -977,7 +977,7 @@ class PrefExport(wx.Dialog): btn_ok.SetDefault() btnsizer.AddButton(btn_ok) btnsizer.Realize() - sizer.Add(btnsizer, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALL|wx.ALIGN_RIGHT, 5) + sizer.Add(btnsizer, 0, wx.ALL|wx.ALIGN_RIGHT, 5) self.Bind(wx.EVT_BUTTON, self.check_file, btn_ok) self.SetSizer(sizer) sizer.Fit(self) -- 2.7.4