def open(self, status_changed_callback): assert status_changed_callback receiver = Receiver.open() if receiver: rl = ReceiverListener(receiver, status_changed_callback) rl.start() return rl
def _receiver(): from logitech.unifying_receiver import Receiver try: r = Receiver.open() except Exception as e: _fail(str(e)) if r is None: _fail("Logitech Unifying Receiver not found") return r