I have several images which I would like to show the user with Python. The user should enter some description and then the next image should be shown.
This is my cod
I've modified this recipe before to do some image work in Python. It uses Tkinter, so it doesn't require any modules besides PIL.
'''This will simply go through each file in the current directory and
try to display it. If the file is not an image then it will be skipped.
Click on the image display window to go to the next image.
Noah Spurrier 2007'''
import os, sys
import Tkinter
import Image, ImageTk
def button_click_exit_mainloop (event):
event.widget.quit() # this will cause mainloop to unblock.
root = Tkinter.Tk()
root.bind("