Commit e7f21da0 authored by Guillaume Seguin's avatar Guillaume Seguin

Add tooltip to simple extruder switcher

parent 5fa144a7
...@@ -143,6 +143,7 @@ def add_extra_controls(self, root, parentpanel, extra_buttons = None): ...@@ -143,6 +143,7 @@ def add_extra_controls(self, root, parentpanel, extra_buttons = None):
ebuttonssizer.Add(wx.StaticText(ebuttonspanel, -1, _("Tool:")), flag = wx.ALIGN_CENTER) ebuttonssizer.Add(wx.StaticText(ebuttonspanel, -1, _("Tool:")), flag = wx.ALIGN_CENTER)
if root.settings.extruders == 2: if root.settings.extruders == 2:
root.extrudersel = wx.Button(ebuttonspanel, -1, "0", style = wx.BU_EXACTFIT) root.extrudersel = wx.Button(ebuttonspanel, -1, "0", style = wx.BU_EXACTFIT)
root.extrudersel.SetToolTip(wx.ToolTip(_("Click to switch current extruder")))
def extrudersel_cb(event): def extrudersel_cb(event):
if root.extrudersel.GetLabel() == "1": if root.extrudersel.GetLabel() == "1":
...@@ -159,7 +160,7 @@ def add_extra_controls(self, root, parentpanel, extra_buttons = None): ...@@ -159,7 +160,7 @@ def add_extra_controls(self, root, parentpanel, extra_buttons = None):
root.extrudersel = wx.ComboBox(ebuttonspanel, -1, choices = choices, root.extrudersel = wx.ComboBox(ebuttonspanel, -1, choices = choices,
style = wx.CB_DROPDOWN | wx.CB_READONLY, style = wx.CB_DROPDOWN | wx.CB_READONLY,
size = (50, -1)) size = (50, -1))
root.extrudersel.SetToolTip(wx.ToolTip("Select current extruder")) root.extrudersel.SetToolTip(wx.ToolTip(_("Select current extruder")))
root.extrudersel.SetValue(choices[0]) root.extrudersel.SetValue(choices[0])
root.extrudersel.Bind(wx.EVT_COMBOBOX, root.tool_change) root.extrudersel.Bind(wx.EVT_COMBOBOX, root.tool_change)
root.printerControls.append(root.extrudersel) root.printerControls.append(root.extrudersel)
......
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