diff options
-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() |