IDE: On windows, align better "reset to default" button in CTN config panel. svghmi
authorEdouard Tisserant
Mon, 26 Jul 2021 10:20:39 +0200
branchsvghmi
changeset 3291 7d0e7e4d88cd
parent 3290 f0c97422b34a
child 3292 ef04cedee08b
IDE: On windows, align better "reset to default" button in CTN config panel.
editors/ConfTreeNodeEditor.py
--- a/editors/ConfTreeNodeEditor.py	Mon Jul 26 08:42:26 2021 +0200
+++ b/editors/ConfTreeNodeEditor.py	Mon Jul 26 10:20:39 2021 +0200
@@ -473,8 +473,7 @@
                 else:
                     if element_infos["type"] == "boolean":
                         checkbox = wx.CheckBox(self.ParamsEditor)
-                        boxsizer.AddWindow(checkbox, border=5,
-                                   flag=wx.ALIGN_CENTER_VERTICAL | wx.RIGHT)
+                        boxsizer.AddWindow(checkbox, flag=wx.ALIGN_CENTER_VERTICAL | wx.RIGHT)
                         if element_infos["value"] is not None:
                             checkbox.SetValue(element_infos["value"])
                         checkbox.Bind(wx.EVT_CHECKBOX,
@@ -536,7 +535,7 @@
                               self.GetResetFunction(element_path),
                               bt)
 
-                    boxsizer.AddWindow(bt)
+                    boxsizer.AddWindow(bt, border=5, flag=wx.ALIGN_CENTER_VERTICAL | wx.LEFT)
             first = False
         sizer.Layout()
         self.RefreshScrollbars()