def stop_tts(self): self.stopspeak = True try: pubutil.withps(self.stop_tts2) except: pubutil.print_exception("Cannot kill") #self.speech_pid.pid self.speech_pid = None self.butt4.set_label("_Read") return
def check_speak(self): # If found, the search returns True ret = pubutil.withps(self.check_speak2) if not ret: self.butt4.set_label("_Read") self.speech_pid = None else: # Look for termination again gobject.timeout_add(1000, self.check_speak)