(self)
Completes the current request, after it is first read by gps_main.
        Displays visual confirmation that the request was processed,
        displays any error messages, and then switches into mode 'run' or 'wait'.
Completes the current request, after it is first read by gps_main.
        Displays visual confirmation that the request was processed,
        displays any error messages, and then switches into mode 'run' or 'wait'.
Completes the current request after it is first read by gps_main . Displays visual confirmation that the request was processed displays any error messages and then switches into mode run or wait .
def process_mode(self):
        """
        Completes the current request, after it is first read by gps_main.
        Displays visual confirmation that the request was processed,
        displays any error messages, and then switches into mode 'run' or 'wait'.
        """
        self.mode = 'process'
        self.set_action_text(self.request + ' processed')
        self.set_action_bgcolor(self._colors[self.request], alpha=1.0)
        if self.err_msg:
            self.set_action_text(self.request + ' processed' + '\nERROR: ' +
                                 self.err_msg)
            self.err_msg = None
            time.sleep(1.0)
        else:
            time.sleep(0.5)
        if self.request in ('stop', 'reset', 'fail'):
            self.wait_mode()
        elif self.request == 'go':
            self.run_mode()
        self.request = None
def process_mode ( self ) : self . mode = 'process' self . set_action_text ( self . request + ' processed' ) self . set_action_bgcolor ( self . _colors [ self . request ] , alpha = 1.0 ) if self . err_msg : self . set_action_text ( self . request + ' processed' + '\nERROR: ' + self . err_msg ) self . err_msg = None time . sleep ( 1.0 ) else : time . sleep ( 0.5 ) if self . request in ( 'stop' , 'reset' , 'fail' ) : self . wait_mode ( ) elif self . request == 'go' : self . run_mode ( ) self . request = None