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