Commit 68132406 authored by Guillaume Seguin's avatar Guillaume Seguin

Add combobox to select current tool

parent 64b16956
......@@ -138,6 +138,14 @@ def add_extra_controls(self, root, parentpanel, extra_buttons = None):
if not extra_buttons:
ebuttonspanel = root.newPanel(parentpanel)
ebuttonssizer = wx.BoxSizer(wx.HORIZONTAL)
if root.settings.extruders > 1:
ebuttonssizer.Add(wx.StaticText(ebuttonspanel, -1, _("Tool:")), flag = wx.ALIGN_CENTER)
choices = [str(i) for i in range(1, root.settings.extruders + 1)]
root.extrudersel = wx.ComboBox(ebuttonspanel, -1, choices = choices,
style = wx.CB_DROPDOWN, size = (50, -1))
root.extrudersel.SetToolTip(wx.ToolTip("Select current extruder"))
root.extrudersel.SetValue("1")
ebuttonssizer.Add(root.extrudersel)
ebuttonspanel.SetSizer(ebuttonssizer)
self.Add(ebuttonspanel, pos = (base_line + 2, 0), span = (1, 5), flag = wx.EXPAND)
......
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