From 9b297277ac037b0a12e9f83cfaea407122c84f54 Mon Sep 17 00:00:00 2001 From: Balthasar Reuter Date: Wed, 6 May 2015 22:33:21 +0200 Subject: [PATCH] bugfix in array initialization --- photobooth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/photobooth.py b/photobooth.py index d1695e3..c8d409e 100755 --- a/photobooth.py +++ b/photobooth.py @@ -145,7 +145,7 @@ def handle_keypress(key): print "Taking 4 pictures" size = display.get_size() image_size = (int(size[0]/2), int(size[1]/2)) - filenames = [] + filenames = [i for i in range(4)] for x in range(4): filenames[x] = camera.take_picture(images.get_next()) display.show_picture(filenames[0], image_size, (0,0))