Commit 3d67dd01 authored by Guillaume Seguin's avatar Guillaume Seguin

Correctly align lock box

parent 0b918fcb
...@@ -600,7 +600,7 @@ def MainToolbar(root, parentpanel = None, use_wrapsizer = False): ...@@ -600,7 +600,7 @@ def MainToolbar(root, parentpanel = None, use_wrapsizer = False):
glob = wx.BoxSizer(wx.HORIZONTAL) glob = wx.BoxSizer(wx.HORIZONTAL)
parentpanel = root.newPanel(parentpanel) parentpanel = root.newPanel(parentpanel)
glob.Add(parentpanel, 1, flag = wx.EXPAND) glob.Add(parentpanel, 1, flag = wx.EXPAND)
glob.Add(root.locker, 0) glob.Add(root.locker, 0, flag = wx.ALIGN_CENTER)
ToolbarSizer = wx.WrapSizer if use_wrapsizer and wx.VERSION > (2, 9) else wx.BoxSizer ToolbarSizer = wx.WrapSizer if use_wrapsizer and wx.VERSION > (2, 9) else wx.BoxSizer
self = ToolbarSizer(wx.HORIZONTAL) self = ToolbarSizer(wx.HORIZONTAL)
root.rescanbtn = make_autosize_button(parentpanel, _("Port"), root.rescanports, _("Communication Settings\nClick to rescan ports")) root.rescanbtn = make_autosize_button(parentpanel, _("Port"), root.rescanports, _("Communication Settings\nClick to rescan ports"))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment