Exemple #1
0
 def show_output1(self):
     self.__is_working = True
     self.set_button_to_waiting_mode()
     try:
         set = SettingsEva()
         set.save_method(1)
         command = recognize_and_execute(self.modules)
         self.indicator.chg_icon('green')
     except Exception as e:
         command = e.args[0]
         self.indicator.chg_icon('red')
     self.indicator.show_msg(command)
     self.set_button_to_normal_mode()
     self.__is_working = False
Exemple #2
0
 def show_output0(self):
     self.__is_working = True
     self.set_button_to_waiting_mode()
     self.indicator.chg_icon("yellow")
     try:
         set = SettingsEva()
         set.save_method(0)
         command = recognize_and_execute(self.modules)
         self.mini_ui.Button_Recognize.setStyleSheet(self.green_button)
         self.indicator.chg_icon('green')
     except Exception as e:
         command = e.args[0]
         self.mini_ui.Button_Recognize.setStyleSheet(self.red_button)
         self.indicator.chg_icon('red')
     self.mini_ui.Text_RecognizedCommand.setText(command)
     self.indicator.show_msg(command)
     self.set_button_to_normal_mode()
     self.__is_working = False
     self.indicator.call_for_recognize = False