1 2 3 4 5 6 7 8 9 10 11 12
from Tkinter import * import sys def main(): filename = sys.argv[1] root = Tk() img = PhotoImage(file=filename) label = Label(root, image=img) label.pack() root.mainloop() main()