diff --git a/Demo/tkinter/guido/imageview.py b/Demo/tkinter/guido/imageview.py new file mode 100755 index 00000000000..541c96adeab --- /dev/null +++ b/Demo/tkinter/guido/imageview.py @@ -0,0 +1,13 @@ +from Tkinter import * +import sys + +def main(): + filename = sys.argv[1] + root = Tk() + label = Label(root) + img = PhotoImage(file=filename) + label['image'] = img + label.pack() + root.mainloop() + +main()