improved event handling for set-time
This commit is contained in:
@@ -10,8 +10,8 @@ from time import sleep, clock
|
|||||||
from PIL import Image
|
from PIL import Image
|
||||||
|
|
||||||
from gui import GUI_PyGame as GuiModule
|
from gui import GUI_PyGame as GuiModule
|
||||||
from camera import CameraException, Camera_cv as CameraModule
|
# from camera import CameraException, Camera_cv as CameraModule
|
||||||
#from camera import CameraException, Camera_gPhoto as CameraModule
|
from camera import CameraException, Camera_gPhoto as CameraModule
|
||||||
from slideshow import Slideshow
|
from slideshow import Slideshow
|
||||||
from events import Rpi_GPIO as GPIO
|
from events import Rpi_GPIO as GPIO
|
||||||
|
|
||||||
|
|||||||
@@ -65,8 +65,10 @@ def main():
|
|||||||
|
|
||||||
digit_done = False
|
digit_done = False
|
||||||
while not digit_done:
|
while not digit_done:
|
||||||
event = display.wait_for_event()
|
r, e = display.check_for_event()
|
||||||
digit_done = handle_event(event, digit, date_digits, numpad)
|
while r:
|
||||||
|
digit_done = handle_event(e, digit, date_digits, numpad)
|
||||||
|
r, e = display.check_for_event()
|
||||||
|
|
||||||
for digit in range(len(time_digits)):
|
for digit in range(len(time_digits)):
|
||||||
display.clear()
|
display.clear()
|
||||||
|
|||||||
Reference in New Issue
Block a user