I am trying to write code that would be executed through a remote terminal connection. First it would prompt for the image file to be used, then display said image fullscreen. I was able to piece together the code to make this happen. Only problem is I can't escape the fullscreen image without quitting the process in the terminal.
I've looked everywhere I can and can't seem to work out this particular situation. Any help would be greatly appreciated and I'm happy to provide more information if needed. (I'm using Python 2.7 only because the initial code I referenced was 2.7).
Here is what I have so far:
#!/usr/bin/env python
from Tkinter import *
from PIL import Image, ImageTk
def choose_picture():
user_input = raw_input("Choose picture file: ")
user_input = (user_input + ".jpg")
root = Tk()
main_image = Image.open(user_input) # Room label image
photo = ImageTk.PhotoImage(main_image)
Label(root, image=photo).pack()
root.attributes('-fullscreen', True)
root.mainloop()
choose_picture()