Beispiel #1
0
	def OnAddNewMachine(self, e):
		self.Hide()
		profile.setActiveMachine(profile.getMachineCount())
		configWizard.configWizard(True)
		self.Show()
		self.reloadSettingPanels()
		self.updateMachineMenu()
Beispiel #2
0
 def OnAddNewMachine(self, e):
     self.Hide()
     profile.setActiveMachine(profile.getMachineCount())
     configWizard.configWizard(True)
     self.Show()
     self.reloadSettingPanels()
     self.updateMachineMenu()
Beispiel #3
0
	def OnAddMachine(self, e):
		self.Hide()
		self.parent.Hide()
		profile.setActiveMachine(profile.getMachineCount())
		configWizard.configWizard(True)
		self.parent.Show()
		self.parent.reloadSettingPanels()
		self.parent.updateMachineMenu()

		prefDialog = machineSettingsDialog(self.parent)
		prefDialog.Centre()
		prefDialog.Show()
		wx.CallAfter(self.Close)
	def OnAddMachine(self, e):
		self.Hide()
		self.parent.Hide()
		profile.setActiveMachine(profile.getMachineCount())
		configWizard.configWizard(True)
		self.parent.Show()
		self.parent.reloadSettingPanels()
		self.parent.updateMachineMenu()

		prefDialog = machineSettingsDialog(self.parent)
		prefDialog.Centre()
		prefDialog.Show()
		wx.CallAfter(self.Close)
Beispiel #5
0
	def OnChangeToolheadButton(self, e):
		self.Hide()
		self.parent.Hide()
		old_active = int(profile.getPreferenceFloat('active_machine'))
		profile.setActiveMachine(self.nb.GetSelection())
		configWizard.LulzbotChangeToolheadWizard()
		profile.setActiveMachine(old_active)
		self.parent.Show()
		self.parent.reloadSettingPanels()
		self.parent.updateMachineMenu()

		prefDialog = machineSettingsDialog(self.parent)
		prefDialog.Centre()
		prefDialog.Show()
		wx.CallAfter(self.Close)
    def OnChangeToolheadButton(self, e):
        self.Hide()
        self.parent.Hide()
        old_active = int(profile.getPreferenceFloat('active_machine'))
        profile.setActiveMachine(self.nb.GetSelection())
        configWizard.LulzbotChangeToolheadWizard()
        profile.setActiveMachine(old_active)
        self.parent.Show()
        self.parent.reloadSettingPanels()
        self.parent.updateMachineMenu()

        prefDialog = machineSettingsDialog(self.parent)
        prefDialog.Centre()
        prefDialog.Show()
        wx.CallAfter(self.Close)
    def __init__(self, addNew = False):
        super(ConfigFirmware, self).__init__(None, -1, _("Machine Firmware Updater"))

        self._old_machine_index = int(profile.getPreferenceFloat('active_machine'))
        if addNew:
            profile.setActiveMachine(profile.getMachineCount())

        self.Bind(wx.wizard.EVT_WIZARD_PAGE_CHANGED, self.OnPageChanged)
        self.Bind(wx.wizard.EVT_WIZARD_PAGE_CHANGING, self.OnPageChanging)
        self.Bind(wx.wizard.EVT_WIZARD_CANCEL, self.OnCancel)
        self.Bind(wx.wizard.EVT_WIZARD_FINISHED, self.OnFinish)


        self.machineSelectPage = MachineSelectPage(self)
        self.decidetoupdatesigma = decideToUpdateSigma(self)
        self.firstconnectprintersigma = FirstConnectPrinterSigma(self)
        self.decidetoupdateplus = decideToUpdatePlus(self)
        self.firstconnectprinterplus = FirstConnectPrinterPlus(self)
        self.decidetoupdater = decideToUpdateR(self)
        self.firstconnectprinterr = FirstConnectPrinterR(self)



        if profile.getMachineSetting('machine_type') == 'BCN3DSigma':
            wx.wizard.WizardPageSimple.Chain(self.machineSelectPage, self.decidetoupdatesigma)
            wx.wizard.WizardPageSimple.Chain(self.decidetoupdatesigma, self.firstconnectprintersigma)
        if profile.getMachineSetting('machine_type') == 'BCN3DPlus':
            wx.wizard.WizardPageSimple.Chain(self.machineSelectPage, self.decidetoupdateplus)
            wx.wizard.WizardPageSimple.Chain(self.decidetoupdateplus, self.firstconnectprinterplus)
        if profile.getMachineSetting('machine_type') == 'BCN3DR':
            wx.wizard.WizardPageSimple.Chain(self.machineSelectPage, self.decidetoupdater)
            wx.wizard.WizardPageSimple.Chain(self.decidetoupdater, self.firstconnectprinterr)


        self.FitToPage(self.machineSelectPage)
        self.GetPageAreaSizer().Add(self.machineSelectPage)

        self.RunWizard(self.machineSelectPage)
        self.Hide()
Beispiel #8
0
 def OnSelectMachine(self, index):
     profile.setActiveMachine(index)
     self.reloadSettingPanels()
Beispiel #9
0
	def OnSelectMachine(self, index):
		profile.setActiveMachine(index)
		self.reloadSettingPanels()