summaryrefslogtreecommitdiffstats
path: root/Demo
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-09-07 19:42:57 (GMT)
committerGuido van Rossum <guido@python.org>1995-09-07 19:42:57 (GMT)
commitc66394d04991dd0f618ca9552fe0bfe9d22e8302 (patch)
tree33f673cd69060d6c6bcb3f2bb90f3caa052a4d44 /Demo
parent23d7b4bbfd43a27722b99328c0632a28fcc8766c (diff)
downloadcpython-c66394d04991dd0f618ca9552fe0bfe9d22e8302.zip
cpython-c66394d04991dd0f618ca9552fe0bfe9d22e8302.tar.gz
cpython-c66394d04991dd0f618ca9552fe0bfe9d22e8302.tar.bz2
Initial revision
Diffstat (limited to 'Demo')
-rwxr-xr-xDemo/tkinter/guido/imageview.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/Demo/tkinter/guido/imageview.py b/Demo/tkinter/guido/imageview.py
new file mode 100755
index 0000000..541c96a
--- /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()