(self)
Send signal through the input queue to quit BASIC.
Send signal through the input queue to quit BASIC.
Send signal through the input queue to quit BASIC .
def quit_input(self):
        """Send signal through the input queue to quit BASIC."""
        self._input_queue.put(signals.Event(signals.QUIT))
        # drain video queue (joined in other thread)
        while not self._video_queue.empty():
            try:
                signal = self._video_queue.get(False)
            except queue.Empty:
                continue
            self._video_queue.task_done()
        # drain audio queue
        while not self._audio_queue.empty():
            try:
                signal = self._audio_queue.get(False)
            except queue.Empty:
                continue
            self._audio_queue.task_done()
def quit_input ( self ) : self . _input_queue . put ( signals . Event ( signals . QUIT ) ) # drain video queue (joined in other thread) while not self . _video_queue . empty ( ) : try : signal = self . _video_queue . get ( False ) except queue . Empty : continue self . _video_queue . task_done ( ) # drain audio queue while not self . _audio_queue . empty ( ) : try : signal = self . _audio_queue . get ( False ) except queue . Empty : continue self . _audio_queue . task_done ( )