editors/ConfTreeNodeEditor.py
branchsvghmi
changeset 3291 7d0e7e4d88cd
parent 3288 8f3cb4b47cbb
child 3303 0ffb41625592
--- 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()