summaryrefslogtreecommitdiffstats
path: root/Demo/tkinter/guido/imageview.py
blob: 276858a6d88d6eb2f6064e685168bab650ff2bbb (plain)
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()