def temperature_wait_screen(self, *args): title = roboprinter.lang.pack['ZOffset_Wizard']['Wait'] back_destination = roboprinter.robo_screen() layout = Z_Offset_Temperature_Wait_Screen(self.selected_tool, self.offset_adjustment_screen) self.bb.make_screen(layout, title, option_function='no_option') Logger.info("Temperature Wait Screen Activated")
def welcome_screen(self): self.welcome = Button_Screen( roboprinter.lang.pack['Bed_Cal_Wizard']['Welcome']['Body'], self.tighten_all_screw_instructions, button_text=roboprinter.lang.pack['Bed_Cal_Wizard']['Welcome'] ['Button']) title = roboprinter.lang.pack['Bed_Cal_Wizard']['Welcome']['Title'] name = 'welcome_bed_calibration' back_destination = roboprinter.robo_screen() self.welcome.change_screen_actions = self.cleanup self.bb.make_screen(self.welcome, title, option_function='no_option')
def tighten_all_screw_instructions(self): layout = Button_Screen( roboprinter.lang.pack['Bed_Cal_Wizard']['Tilt_Instructions'] ['Body'], self.check_for_valid_start, button_text=roboprinter.lang.pack['Bed_Cal_Wizard'] ['Tilt_Instructions']['Button']) title = roboprinter.lang.pack['Bed_Cal_Wizard']['Tilt_Instructions'][ 'Title'] name = 'tilt1' back_destination = roboprinter.robo_screen() self.bb.make_screen(layout, title, option_function='no_option')
def finish_bed_cal_wizard(self): self.finish_wizard = Picture_Button_Screen( roboprinter.lang.pack['Bed_Cal_Wizard']['Finish_Wizard'] ['Sub_Title'], roboprinter.lang.pack['Bed_Cal_Wizard']['Finish_Wizard']['Body'], 'Icons/Manual_Control/check_icon.png', self.goto_main) title = roboprinter.lang.pack['Bed_Cal_Wizard']['Finish_Wizard'][ 'Title'] name = 'finish_wizard' back_destination = roboprinter.robo_screen() self.bb.make_screen(self.finish_wizard, title, option_function='no_option')
def temperature_wait_screen(self, *args): title = roboprinter.lang.pack['ZOffset_Wizard']['Wait'] back_destination = roboprinter.robo_screen() #get wait screen from RoboLCD.lcd.common_screens import Temperature_Wait_Screen #wait for the temperature to change, then go back to the EZO screen layout = Temperature_Wait_Screen(self.show_EZO_screen, tool_select=self.selected_tool) layout.update = self.wait_screen_skip_action layout.change_screen_actions = self.turn_off_heaters title = roboprinter.lang.pack['FT_ZOffset_Wizard']['Temp_Wait_Title'] self.bb.make_screen(layout, title, option_function='no_option') Logger.info("Temperature Wait Screen Activated")
def finish_wizard(self): #title_text, body_text,image_source, button_function, button_image, button_text layout = Title_Picture_Image_on_Button_Screen(lang.pack['Filament_Wizard']['Complete_Title'], lang.pack['Filament_Wizard']['Complete_Body'], 'Icons/Manual_Control/check_icon.png', self.goto_main, 'Icons/Manual_Control/ok_button_icon.png', lang.pack['Filament_Wizard']["Ok"]) if self.load_or_change == 'CHANGE': _title = roboprinter.lang.pack['Filament_Wizard']['Title_55'] else: _title = roboprinter.lang.pack['Filament_Wizard']['Title_44'] back_destination = roboprinter.robo_screen() self.bb.make_screen(layout, _title, option_function='no_option')
def ask_for_mode(self): def manual(): self.mode = "manual" self.start_workflow() def guided(): self.mode = "guided" self.start_workflow() layout = Modal_Question( roboprinter.lang.pack['Bed_Cal_Wizard']['Mode']['Sub_Title'], roboprinter.lang.pack['Bed_Cal_Wizard']['Mode']['Body'], roboprinter.lang.pack['Bed_Cal_Wizard']['Mode']['Button1'], roboprinter.lang.pack['Bed_Cal_Wizard']['Mode']['Button2'], manual, guided) title = roboprinter.lang.pack['Bed_Cal_Wizard']['Mode']['Title'] name = 'guided_or_manual' back_destination = roboprinter.robo_screen() self.bb.make_screen(layout, title, option_function='no_option')
def open_3_point_screen(self, *args, **kwargs): #turn off fans roboprinter.printer_instance._printer.commands('M106 S0') def point_1(state): if state: roboprinter.printer_instance._printer.commands('G1 Z10') roboprinter.printer_instance._printer.commands( 'G1 X35 Y35 F5000') # go to first corner roboprinter.printer_instance._printer.commands('G1 Z0') def point_2(state): if state: roboprinter.printer_instance._printer.commands('G1 Z10') roboprinter.printer_instance._printer.commands( 'G1 X160 Y35 F5000') # go to first corner roboprinter.printer_instance._printer.commands('G1 Z0') def point_3(state): if state: roboprinter.printer_instance._printer.commands('G1 Z10') roboprinter.printer_instance._printer.commands( 'G1 X160 Y160 F5000') # go to first corner roboprinter.printer_instance._printer.commands('G1 Z0') def point_4(state): if state: roboprinter.printer_instance._printer.commands('G1 Z10') roboprinter.printer_instance._printer.commands( 'G1 X35 Y160 F5000') # go to first corner roboprinter.printer_instance._printer.commands('G1 Z0') #make the button observer point_observer = Button_Group_Observer() #make the buttons p1 = OL_Button(roboprinter.lang.pack['Bed_Cal_Wizard'] ['Manual_Instructions']['Left'], "Icons/Bed_Calibration/Bed placement left.png", point_1, enabled=True, observer_group=point_observer) p2 = OL_Button(roboprinter.lang.pack['Bed_Cal_Wizard'] ['Manual_Instructions']['Right'], "Icons/Bed_Calibration/Bed placement right.png", point_2, enabled=False, observer_group=point_observer) p3 = OL_Button(roboprinter.lang.pack['Bed_Cal_Wizard'] ['Manual_Instructions']['Back_Right'], "Icons/Bed_Calibration/Bed placement back right.png", point_3, enabled=False, observer_group=point_observer) p4 = OL_Button(roboprinter.lang.pack['Bed_Cal_Wizard'] ['Manual_Instructions']['Back_Left'], "Icons/Bed_Calibration/Bed placement back left.png", point_4, enabled=False, observer_group=point_observer) bl2 = [p1, p2] bl1 = [p4, p3] #make screen layout = Quad_Icon_Layout( bl1, bl2, roboprinter.lang.pack['Bed_Cal_Wizard'] ['Manual_Instructions']['Sub_Title']) back_destination = roboprinter.robo_screen() title = roboprinter.lang.pack['Bed_Cal_Wizard']['Manual_Instructions'][ 'Title'] self.bb.make_screen(layout, title, option_function=self.end_point, option_icon="Icons/Slicer wizard icons/next.png")