예제 #1
0
 def start_capture(self):
     """Begin listening for output from the stenotype machine."""
     try:
         self._machine = hid.device(VENDOR_ID, 1)
         self._machine.set_nonblocking(1)
     except IOError as e:
         self._error()
         return
     return ThreadedStenotypeBase.start_capture(self)
예제 #2
0
파일: treal.py 프로젝트: Chobbes/plover
 def start_capture(self):
     """Begin listening for output from the stenotype machine."""
     try:
         self._machine = hid.device(VENDOR_ID, 1)
         self._machine.set_nonblocking(1)
     except IOError as e:
         self._error()
         return
     return ThreadedStenotypeBase.start_capture(self)
예제 #3
0
 def start_capture(self):
     """Begin listening for output from the stenotype machine."""
     try:
         self._machine = hid.device(VENDOR_ID, 1)
         self._machine.set_nonblocking(1)
     except IOError as e:
         log.info('Treal device not found: %s', str(e))
         log.warning('Treal is not connected')
         self._error()
         return
     return ThreadedStenotypeBase.start_capture(self)
예제 #4
0
파일: treal.py 프로젝트: PaulBeaudet/plover
 def start_capture(self):
     """Begin listening for output from the stenotype machine."""
     try:
         self._machine = hid.device(VENDOR_ID, 1)
         self._machine.set_nonblocking(1)
     except IOError as e:
         log.info('Treal device not found: %s', str(e))
         log.warning('Treal is not connected')
         self._error()
         return
     return ThreadedStenotypeBase.start_capture(self)
예제 #5
0
 def __init__(self, params):
     ThreadedStenotypeBase.__init__(self)
     self._machine = None
예제 #6
0
 def stop_capture(self):
     """Stop listening for output from the stenotype machine."""
     ThreadedStenotypeBase.stop_capture(self)
     if self._machine:
         self._machine.close()
     self._stopped()
예제 #7
0
파일: treal.py 프로젝트: PaulBeaudet/plover
 def __init__(self, params):
     ThreadedStenotypeBase.__init__(self)
     self._machine = None
예제 #8
0
파일: treal.py 프로젝트: PaulBeaudet/plover
 def stop_capture(self):
     """Stop listening for output from the stenotype machine."""
     ThreadedStenotypeBase.stop_capture(self)
     if self._machine:
         self._machine.close()
     self._stopped()