Exemplo n.º 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)
Exemplo n.º 2
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)
Exemplo n.º 3
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)
Exemplo n.º 4
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" ')