Example #1
0
 def make_choice(self):
     if idle_queue.register_event(self.event):
         events.quality_choice_dialog.emit(self.f_name, self.choices_list, self.set_solution)
         self.event.wait()
         self.event.clear() #re-use.
         idle_queue.remove_event(self.event)
         if not self.solution:
             logger.warning("No choice selected") #should not be possible
Example #2
0
 def make_choice(self):
     if idle_queue.register_event(self.event):
         signals.quality_choice_dialog.emit(self.f_name, self.choices_list,
                                            self.set_solution)
         self.event.wait()
         self.event.clear()  #re-use.
         idle_queue.remove_event(self.event)
         if not self.solution:
             logger.warning("No choice selected")  #should not be possible
Example #3
0
 def solve_captcha(self):
     """"""
     self.captcha_challenge = None
     if idle_queue.register_event(self.event):
         challenge = Challenge(self.captcha_link)
         events.captcha_dialog.emit(self.host, challenge, self.set_solution)
         self.event.wait()
         self.event.clear() #re-use.
         idle_queue.remove_event(self.event)
         self.captcha_challenge = challenge.captcha_challenge
         if not self.solution:
             logger.warning("No captcha response")
Example #4
0
 def solve_captcha(self):
     """"""
     self.captcha_challenge = None
     if idle_queue.register_event(self.event):
         challenge = Challenge(self.captcha_link)
         signals.captcha_dialog.emit(self.host, challenge,
                                     self.set_solution)
         self.event.wait()
         self.event.clear()  #re-use.
         idle_queue.remove_event(self.event)
         self.captcha_challenge = challenge.captcha_challenge
         if not self.solution:
             logger.warning("No captcha response")