PageRenderTime 42ms CodeModel.GetById 19ms app.highlight 2ms RepoModel.GetById 19ms app.codeStats 0ms

/Demo/tkinter/guido/imageview.py

http://unladen-swallow.googlecode.com/
Python | 12 lines | 10 code | 2 blank | 0 comment | 0 complexity | 5ac49057e0d160ff9a74a08db404b495 MD5 | raw file
 1from Tkinter import *
 2import sys
 3
 4def main():
 5    filename = sys.argv[1]
 6    root = Tk()
 7    img = PhotoImage(file=filename)
 8    label = Label(root, image=img)
 9    label.pack()
10    root.mainloop()
11
12main()