Esempio n. 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
Esempio n. 2
0
File: cli.py Progetto: 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