Trigger State added to handle GPIO and keypress similarly

This commit is contained in:
Balthasar Reuter
2018-05-09 22:49:21 +02:00
parent 613a4dc6de
commit 8881b6aeec
3 changed files with 13 additions and 3 deletions

View File

@@ -262,7 +262,7 @@ class Photobooth:
raise RuntimeError('Unknown event received', str(event))
self._send.send(gui.IdleState())
self._lampOn()
self.triggerOn()
def gpioTrigger(self):
@@ -279,4 +279,4 @@ class Photobooth:
def triggerOn(self):
self._lampOn()
self._gpioTrigger = self.trigger
self._gpioTrigger = lambda : self._send.send(Gui.TriggerState())