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 set_resolution(app, widget, resolution): camera.stop_display() camera.display(resolution=resolution_dict[resolution])