Fixed wrong order of arguments
This commit is contained in:
2
gui.py
2
gui.py
@@ -137,7 +137,7 @@ class GUI_PyGame:
|
|||||||
|
|
||||||
# Store screen and size
|
# Store screen and size
|
||||||
self.size = size
|
self.size = size
|
||||||
self.screen = pygame.display.set_mode(self.size, pygame.FULLSCREEN)
|
self.screen = pygame.display.set_mode(size, pygame.FULLSCREEN)
|
||||||
|
|
||||||
# Clear screen
|
# Clear screen
|
||||||
self.clear()
|
self.clear()
|
||||||
|
|||||||
@@ -255,7 +255,7 @@ class Photobooth:
|
|||||||
#################
|
#################
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
photobooth = Photobooth(picture_basename, display_size, image_size, pose_time, display_time,
|
photobooth = Photobooth(display_size, picture_basename, image_size, pose_time, display_time,
|
||||||
gpio_trigger_channel, gpio_shutdown_channel, gpio_lamp_channel)
|
gpio_trigger_channel, gpio_shutdown_channel, gpio_lamp_channel)
|
||||||
photobooth.run()
|
photobooth.run()
|
||||||
photobooth.teardown()
|
photobooth.teardown()
|
||||||
|
|||||||
Reference in New Issue
Block a user