Пример #1
0
	def OnAddNewMachine(self, e):
		self.Hide()
		profile.setActiveMachine(profile.getMachineCount())
		configWizard.configWizard(True)
		self.Show()
		self.reloadSettingPanels()
		self.updateMachineMenu()
Пример #2
0
 def OnAddNewMachine(self, e):
     self.Hide()
     profile.setActiveMachine(profile.getMachineCount())
     configWizard.configWizard(True)
     self.Show()
     self.reloadSettingPanels()
     self.updateMachineMenu()
Пример #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)
Пример #4
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)
Пример #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)
Пример #6
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)
Пример #7
0
    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()
Пример #8
0
 def OnSelectMachine(self, index):
     profile.setActiveMachine(index)
     self.reloadSettingPanels()
Пример #9
0
	def OnSelectMachine(self, index):
		profile.setActiveMachine(index)
		self.reloadSettingPanels()