diff options
author | Guido van Rossum <guido@python.org> | 1995-09-07 19:42:57 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-09-07 19:42:57 (GMT) |
commit | c66394d04991dd0f618ca9552fe0bfe9d22e8302 (patch) | |
tree | 33f673cd69060d6c6bcb3f2bb90f3caa052a4d44 /Demo/tkinter/guido | |
parent | 23d7b4bbfd43a27722b99328c0632a28fcc8766c (diff) | |
download | cpython-c66394d04991dd0f618ca9552fe0bfe9d22e8302.zip cpython-c66394d04991dd0f618ca9552fe0bfe9d22e8302.tar.gz cpython-c66394d04991dd0f618ca9552fe0bfe9d22e8302.tar.bz2 |
Initial revision
Diffstat (limited to 'Demo/tkinter/guido')
-rwxr-xr-x | Demo/tkinter/guido/imageview.py | 13 |
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() |