From: Youness Alaoui Date: Mon, 27 Jul 2015 19:18:13 +0000 (-0400) Subject: Remove the re-flash firmware button for the toolhead X-Git-Tag: lulzbot-15.02.1-2.01~56^2~34 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=63353650de793eb278a69ba1d5b086f48dc3150c;p=cura.git Remove the re-flash firmware button for the toolhead --- diff --git a/Cura/gui/configBase.py b/Cura/gui/configBase.py index 2742b1c2..1b1850d9 100644 --- a/Cura/gui/configBase.py +++ b/Cura/gui/configBase.py @@ -272,16 +272,13 @@ class ToolheadRow(object): self.ctrl = wx.TextCtrl(self.subpanel, -1, self.setting.getValue(self.settingIndex)) self.ctrl.Enable(False) - self.changeToolheadButton = wx.Button(self.subpanel, -1, "Change Toolhead") + self.changeToolheadButton = wx.Button(self.subpanel, -1, _("Change Toolhead")) self.changeToolheadButton.Bind(wx.EVT_BUTTON, self.OnChangeToolheadButton) - self.flashButton = wx.Button(self.subpanel, -1, "Re-flash Firmware") - self.flashButton.Bind(wx.EVT_BUTTON, self.OnFlashButton) flag = wx.EXPAND self.ctrl.Bind(wx.EVT_ENTER_WINDOW, self.OnMouseEnter) subsizer.Add(self.ctrl, 1, flag=wx.ALIGN_CENTER_VERTICAL|wx.EXPAND) subsizer.Add(self.changeToolheadButton, 0, flag=wx.ALIGN_CENTER_VERTICAL|wx.LEFT,border=2) - subsizer.Add(self.flashButton, 0, flag=wx.ALIGN_CENTER_VERTICAL|wx.LEFT,border=2) sizer.Add(self.label, (x,y), flag=wx.ALIGN_CENTER_VERTICAL|wx.LEFT,border=10) sizer.Add(self.subpanel, (x,y+1), flag=wx.ALIGN_CENTER_VERTICAL|flag) @@ -296,20 +293,13 @@ class ToolheadRow(object): panel.main.settingControlList.append(self) - def OnFlashButton(self, e): - framey = PopUp(parent=None, id=-1, text="flash firmware") - framey.Show() - def OnChangeToolheadButton(self, e): import configWizard import wx.wizard self.ToolheadSelectPage = configWizard.ToolheadSelectPage(self) wx.wizard.WizardPageSimple.Chain(self, self.GetParent().ToolheadSelectPage) self.ToolheadSelectPage.test() - - #framey = PopUp(parent=None, id=-1, text="toolhead changer") - #framey.Show() - + def OnMouseEnter(self, e): self.label.SetToolTipString(self.setting.getTooltip()) self.ctrl.SetToolTipString(self.setting.getTooltip()) diff --git a/Cura/gui/preferencesDialog.py b/Cura/gui/preferencesDialog.py index eab853bc..fa7564aa 100644 --- a/Cura/gui/preferencesDialog.py +++ b/Cura/gui/preferencesDialog.py @@ -123,8 +123,7 @@ class machineSettingsDialog(wx.Dialog): configBase.SettingRow(left, 'gcode_flavor', index=idx) printer_type = profile.getMachineSetting('machine_type', idx) - isLulzBot = (printer_type.startswith('lulzbot_')) - if(isLulzBot): + if printer_type.startswith('lulzbot_'): configBase.TitleRow(right, _("Toolhead")) configBase.ToolheadRow(right, 'toolhead', index=idx)