+class LulzbotTaz6SelectPage(InfoPage):
+ def __init__(self, parent):
+ super(LulzbotTaz6SelectPage, self).__init__(parent, _("LulzBot TAZ 6 Selection"))
+
+ self.panel = self.AddPanel()
+ image_size=(LulzbotMachineSelectPage.IMAGE_WIDTH, LulzbotMachineSelectPage.IMAGE_HEIGHT)
+ self.taz6 = self.AddImageButton(self.panel, 0, 0, _('Tilapia'),
+ 'Lulzbot_Toolhead_TAZ_Tilapia.jpg', image_size,
+ style=ImageButton.IB_GROUP)
+ self.taz6.OnSelected(self.OnTilapiaSelected)
+ self.taz6.SetValue(True)
+
+ def OnPageShown(self):
+ self.taz6.TriggerGroupCallbacks()
+
+ def OnTilapiaSelected(self):
+ wx.wizard.WizardPageSimple.Chain(self, self.GetParent().lulzbotReadyPage)
+
+ def StoreData(self):
+ profile.putProfileSetting('nozzle_size', '0.5')
+ profile.putMachineSetting('extruder_amount', '1')
+ profile.putMachineSetting('toolhead', 'Single Extruder Tilapia')
+ profile.putMachineSetting('toolhead_shortname', 'Tilapia')
+ profile.putMachineSetting('machine_type', 'lulzbot_TAZ_6_Single_Tilapia')
+ profile.putMachineSetting('machine_name', 'LulzBot TAZ 6')
+
+class LulzbotTazSelectPage(InfoPage):
+ def __init__(self, parent):
+ super(LulzbotTazSelectPage, self).__init__(parent, _("LulzBot TAZ 4-5 Selection"))
+
+ self.panel = self.AddPanel()
+ image_size=(LulzbotMachineSelectPage.IMAGE_WIDTH, LulzbotMachineSelectPage.IMAGE_HEIGHT)
+ self.taz5 = self.AddImageButton(self.panel, 0, 0, _('Stock TAZ 5 (PEI && v2)'),
+ 'Lulzbot_TAZ_5_Hex_and_PEI.jpg', image_size,
+ style=ImageButton.IB_GROUP)
+ self.taz5.OnSelected(self.OnTaz5Selected)
+ self.taz4 = self.AddImageButton(self.panel, 0, 1, _('Stock TAZ 4 (PET && v1)'),
+ 'Lulzbot_TAZ_4_Buda_and_PET.jpg', image_size)
+ self.taz4.OnSelected(self.OnTaz4Selected)
+ self.modified = self.AddImageButton(self.panel, 1, 0, _('Modified LulzBot TAZ 4 or 5'),
+ 'Lulzbot_TAZ5.jpg', image_size)
+ self.modified.OnSelected(self.OnModifiedSelected)
+ self.taz5.SetValue(True)
+
+ def OnPageShown(self):
+ self.taz5.TriggerGroupCallbacks()
+
+ def OnTaz5Selected(self):
+ wx.wizard.WizardPageSimple.Chain(self, self.GetParent().lulzbotTaz5NozzleSelectPage)
+ wx.wizard.WizardPageSimple.Chain(self.GetParent().lulzbotTaz5NozzleSelectPage,
+ self.GetParent().lulzbotReadyPage)
+
+ def OnTaz4Selected(self):
+ wx.wizard.WizardPageSimple.Chain(self, self.GetParent().lulzbotReadyPage)
+
+ def OnModifiedSelected(self):
+ wx.wizard.WizardPageSimple.Chain(self, self.GetParent().lulzbotTazBedSelectPage)
+ wx.wizard.WizardPageSimple.Chain(self.GetParent().lulzbotTazBedSelectPage,
+ self.GetParent().lulzbotTazHotendPage)
+
+ def StoreData(self):
+ if self.taz5.GetValue():
+ profile.putProfileSetting('nozzle_size', '0.5')
+ profile.putMachineSetting('extruder_amount', '1')
+ profile.putMachineSetting('toolhead', 'Single Extruder V2')
+ profile.putMachineSetting('toolhead_shortname', '')
+ profile.putMachineSetting('machine_type', 'lulzbot_TAZ_5_SingleV2')
+ profile.putMachineSetting('machine_name', 'LulzBot TAZ 5')
+ elif self.taz4.GetValue():
+ profile.putProfileSetting('nozzle_size', '0.35')
+ profile.putMachineSetting('extruder_amount', '1')
+ profile.putMachineSetting('toolhead', 'Single Extruder V1')
+ profile.putMachineSetting('toolhead_shortname', '')
+ profile.putMachineSetting('machine_type', 'lulzbot_TAZ_4_SingleV1')
+ profile.putMachineSetting('machine_name', 'LulzBot TAZ 4')
+
+class LulzbotTazBedSelectPage(InfoPage):
+ def __init__(self, parent):
+ super(LulzbotTazBedSelectPage, self).__init__(parent, _("Bed Surface"))
+
+ self.panel = self.AddPanel()
+ image_size=(LulzbotMachineSelectPage.IMAGE_WIDTH, LulzbotMachineSelectPage.IMAGE_HEIGHT)
+ self.pei = self.AddImageButton(self.panel, 0, 0, _('PEI'),
+ 'Lulzbot_TAZ_PEI_Bed.jpg', image_size,
+ style=ImageButton.IB_GROUP)
+ self.pet = self.AddImageButton(self.panel, 0, 1, _('PET'),
+ 'Lulzbot_TAZ_PET_Bed.jpg', image_size)
+ self.pei.SetValue(True)