def click(): global picture_number global bild camera.click("db/images/"+bild) camera.stop_display() print "Picture saved" filename = bild saveThumbFile(filename) picture_number = picture_number + 1 bild = 'image' + str(picture_number) + '.jpg' return filename
def click(app, button): global picture_number camera.click(app['file_name']) picture_number += 1 app['file_name'] = 'Image' + str(picture_number) + '.jpg'