chiark / gitweb /
Remove the re-flash firmware button for the toolhead
authorYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Mon, 27 Jul 2015 19:18:13 +0000 (15:18 -0400)
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Mon, 27 Jul 2015 20:54:00 +0000 (16:54 -0400)
Cura/gui/configBase.py
Cura/gui/preferencesDialog.py

index 2742b1c2ce72623bb44f28c72193275b7d7d9932..1b1850d9376105dcdeb8b17e16f054f7723005f2 100644 (file)
@@ -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())
index eab853bc41828f0f3e7c4f1b3f6b479bd48d1221..fa7564aa67e6c56148ba7d281d68d1f095368208 100644 (file)
@@ -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)