From 9813ac2aea37ad58a3f1699482d46bbdc8dcb623 Mon Sep 17 00:00:00 2001 From: pierre Date: Thu, 23 Nov 2023 18:50:16 +0100 Subject: [PATCH] FLAGS for wxpython 4.2 --- guiparam3d.py | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/guiparam3d.py b/guiparam3d.py index 793b8cc..d0bc78e 100755 --- a/guiparam3d.py +++ b/guiparam3d.py @@ -53,13 +53,13 @@ class param3d(wx.Panel): sizer_3 = wx.BoxSizer(wx.VERTICAL) sizer_4 = wx.BoxSizer(wx.HORIZONTAL) sizer_5 = wx.BoxSizer(wx.VERTICAL) - sizer_3.Add(self.label_2, 0, wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL, 0) + sizer_3.Add(self.label_2, 0, wx.ALIGN_CENTER_HORIZONTAL, 0) sizer_3.Add(wx.StaticLine(self,-1), 0, wx.EXPAND,0) sizer_5.Add(self.label_3, 0, wx.ALIGN_LEFT|wx.ALIGN_CENTER_VERTICAL, 0) - sizer_5.Add(self.Check1, 0, wx.ALIGN_LEFT|wx.ALIGN_CENTER_VERTICAL, 0) - sizer_5.Add(self.Check2, 0, wx.ALIGN_LEFT|wx.ALIGN_CENTER_VERTICAL, 0) - sizer_5.Add(self.Check3, 0, wx.ALIGN_LEFT|wx.ALIGN_CENTER_VERTICAL, 0) - sizer_5.Add(self.radio_box_2, 0, wx.ALIGN_LEFT|wx.ALIGN_CENTER_VERTICAL, 0) + sizer_5.Add(self.Check1, 0, wx.ALIGN_LEFT, 0) + sizer_5.Add(self.Check2, 0, wx.ALIGN_LEFT, 0) + sizer_5.Add(self.Check3, 0, wx.ALIGN_LEFT, 0) + sizer_5.Add(self.radio_box_2, 0, wx.ALIGN_LEFT, 0) #sizer_4.Add(sizer_5, 0, wx.ALIGN_CENTER_HORIZONTAL, 0) #sizer_4.Add(self.radio_box_2, 0, wx.ALIGN_CENTER_HORIZONTAL, 0) sizer_3.Add(sizer_5, 1, wx.EXPAND|wx.ALIGN_CENTER_HORIZONTAL, 0) @@ -113,29 +113,29 @@ class simi3d(wx.Panel): sizer_3 = wx.BoxSizer(wx.VERTICAL) sizer_4 = wx.BoxSizer(wx.HORIZONTAL) sizer_5 = wx.BoxSizer(wx.VERTICAL) - sizer_3.Add(self.label_2, 0, wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL, 0) + sizer_3.Add(self.label_2, 0, wx.ALIGN_CENTER_HORIZONTAL, 0) sizer_3.Add(wx.StaticLine(self,-1), 0, wx.EXPAND,0) - sizer_5.Add(self.label_7, 0, wx.ALIGN_LEFT|wx.ALIGN_CENTER_VERTICAL, 0) - sizer_5.Add(self.spin_1, 0, wx.ALIGN_LEFT|wx.ALIGN_CENTER_VERTICAL, 0) + sizer_5.Add(self.label_7, 0, wx.ALIGN_LEFT, 0) + sizer_5.Add(self.spin_1, 0, wx.ALIGN_LEFT, 0) sizer_5.Add(wx.StaticLine(self,-1), 0, wx.EXPAND,0) - sizer_5.Add(self.label_3, 0, wx.ALIGN_LEFT|wx.ALIGN_CENTER_VERTICAL, 0) - sizer_5.Add(self.Choice_1, 0, wx.ALIGN_LEFT|wx.ALIGN_CENTER_VERTICAL, 0) + sizer_5.Add(self.label_3, 0, wx.ALIGN_LEFT, 0) + sizer_5.Add(self.Choice_1, 0, wx.ALIGN_LEFT, 0) sizer_5.Add(wx.StaticLine(self,-1), 0, wx.EXPAND,0) - sizer_5.Add(self.label_4, 0, wx.ALIGN_LEFT|wx.ALIGN_CENTER_VERTICAL, 0) - sizer_5.Add(self.Check_1, 0, wx.ALIGN_LEFT|wx.ALIGN_CENTER_VERTICAL, 0) + sizer_5.Add(self.label_4, 0, wx.ALIGN_LEFT, 0) + sizer_5.Add(self.Check_1, 0, wx.ALIGN_LEFT, 0) sizer_5.Add(wx.StaticLine(self,-1), 0, wx.EXPAND,0) - sizer_5.Add(self.label_5, 0, wx.ALIGN_LEFT|wx.ALIGN_CENTER_VERTICAL, 0) - sizer_5.Add(self.Check_2, 0, wx.ALIGN_LEFT|wx.ALIGN_CENTER_VERTICAL, 0) + sizer_5.Add(self.label_5, 0, wx.ALIGN_LEFT, 0) + sizer_5.Add(self.Check_2, 0, wx.ALIGN_LEFT, 0) sizer_5.Add(wx.StaticLine(self,-1), 0, wx.EXPAND,0) - sizer_5.Add(self.label_6, 0, wx.ALIGN_LEFT|wx.ALIGN_CENTER_VERTICAL, 0) - sizer_5.Add(self.slider_1, 0, wx.ALIGN_LEFT|wx.ALIGN_CENTER_VERTICAL, 0) + sizer_5.Add(self.label_6, 0, wx.ALIGN_LEFT, 0) + sizer_5.Add(self.slider_1, 0, wx.ALIGN_LEFT, 0) sizer_5.Add(wx.StaticLine(self,-1), 0, wx.EXPAND,0) - sizer_5.Add(self.label_layout, 0, wx.ALIGN_LEFT|wx.ALIGN_CENTER_VERTICAL, 0) - sizer_5.Add(self.Choice_2, 0, wx.ALIGN_LEFT|wx.ALIGN_CENTER_VERTICAL, 0) - sizer_5.Add(self.movie, 0, wx.ALIGN_LEFT|wx.ALIGN_CENTER_VERTICAL, 0) + sizer_5.Add(self.label_layout, 0, wx.ALIGN_LEFT, 0) + sizer_5.Add(self.Choice_2, 0, wx.ALIGN_LEFT, 0) + sizer_5.Add(self.movie, 0, wx.ALIGN_LEFT, 0) - sizer_3.Add(sizer_5, 1, wx.EXPAND|wx.ALIGN_CENTER_HORIZONTAL, 0) + sizer_3.Add(sizer_5, 1, wx.EXPAND, 0) sizer_1.Add(sizer_3, 1, wx.ALIGN_CENTER_HORIZONTAL, 0) self.SetSizer(sizer_1) sizer_1.Fit(self) -- 2.7.4