I would like to display an image with Python and close it after user enters the name of the image in terminal. I use PIL to display image, here is the code:
Just open any image viewer/editor in a separate process and kill it once user has answered your question e.g.
from PIL import Image import subprocess p = subprocess.Popen(["display", "/tmp/test.png"]) raw_input("Give a name for image:") p.kill()