Example #1
0
	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
Example #2
0
File: cli.py Project: Nek-/Solaar
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