From c66394d04991dd0f618ca9552fe0bfe9d22e8302 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 7 Sep 1995 19:42:57 +0000 Subject: [PATCH] Initial revision --- Demo/tkinter/guido/imageview.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 Demo/tkinter/guido/imageview.py 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()