(self, signal)
return False
Handle input signals.
Handle input signals.
Handle input signals .
def check_input(self, signal):
        """Handle input signals."""
        if signal.event_type == signals.CLIP_COPY:
            self._copy_clipboard(*signal.params)
            return True
        elif signal.event_type == signals.KEYB_DOWN:
            c, scan, mod = signal.params
            if scan == scancode.PRINT and (scancode.LSHIFT in mod or scancode.RSHIFT in mod):
                # shift+printscreen triggers a print screen
                self._print_screen(self._lpt1_file)
                return True
        return False
def check_input ( self , signal ) : if signal . event_type == signals . CLIP_COPY : self . _copy_clipboard ( * signal . params ) return True elif signal . event_type == signals . KEYB_DOWN : c , scan , mod = signal . params if scan == scancode . PRINT and ( scancode . LSHIFT in mod or scancode . RSHIFT in mod ) : # shift+printscreen triggers a print screen self . _print_screen ( self . _lpt1_file ) return True return False