예제 #1
0
 def button_focus_click(self, MainWindow):
     if (self.checkBox_rec.checkState() == 2) and (self.flag == True):
         new_function.rec_command_to_file(self.test_box.currentText(), 'focus', self.current_dir)
     if (self.flag == True):
         new_function.command_to_terminal(self.ssh, 'focus')
     if (self.checkBox_desktop.checkState() == 2):
         new_function.load_image(self.session_web, self.image_label, self.current_dir, self.ip_edit)
예제 #2
0
    def button_all_setting(self, MainWindow):
        if self.flag == True:
            new_function.standart_input(self.ssh,'all_settings.txt', self.checkBox_iterion)

        if (self.checkBox_rec.checkState() == 2) and (self.flag == True):
            new_function.rec_command_to_file(self.test_box.currentText(), 'way_to_all_settings', self.current_dir)
        return
예제 #3
0
 def button_dot_click(self, MainWindow):  # не реализовано в консоли
     if (self.checkBox_rec.checkState() == 2) and (self.flag == True):
         new_function.rec_command_to_file(self.test_box.currentText(), 'button "Dot"', self.current_dir)
     if (self.flag == True):
         new_function.command_to_terminal(self.ssh, 'button "Dot" ')
     if (self.checkBox_desktop.checkState() == 2):
         new_function.load_image(self.session_web, self.image_label, self.current_dir, self.ip_edit)
예제 #4
0
 def sys_click(self, MainWindow):
     if (self.checkBox_rec.checkState() == 2) and (self.flag == True):
         new_function.rec_command_to_file(self.test_box.currentText(), 'system_menu', self.current_dir)
     if (self.flag == True):
         new_function.command_to_terminal(self.ssh, 'button -t 2 "Pause" ')
         time.sleep(1)
     if (self.checkBox_desktop.checkState() == 2):
         new_function.load_image(self.session_web, self.image_label, self.current_dir, self.ip_edit)
예제 #5
0
 def button_call_click(self, MainWindow):
     if (self.checkBox_rec.checkState() == 2) and (self.flag == True):
         new_function.rec_command_to_file(self.test_box.currentText(), 'call', self.current_dir)
예제 #6
0
 def button_sleep_click(self, MainWindow):
     if (self.checkBox_rec.checkState() == 2) and (self.flag == True):
         new_function.rec_command_to_file(self.test_box.currentText(), 'sleep' + self.time_edit.text(), self.current_dir)
예제 #7
0
 def cam_p_click(self, Mainwindow):
     if (self.checkBox_rec.checkState() == 2) and (self.flag == True):
         new_function.rec_command_to_file(self.test_box.currentText(), 'button "F7"', self.current_dir)
     if (self.flag == True):
         new_function.command_to_terminal(self.ssh, 'button "F7" ')