diff options
Diffstat (limited to 'Demo')
-rwxr-xr-x | Demo/tkinter/guido/imageview.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Demo/tkinter/guido/imageview.py b/Demo/tkinter/guido/imageview.py index 541c96a..d6efed0 100755 --- a/Demo/tkinter/guido/imageview.py +++ b/Demo/tkinter/guido/imageview.py @@ -4,9 +4,8 @@ import sys def main(): filename = sys.argv[1] root = Tk() - label = Label(root) img = PhotoImage(file=filename) - label['image'] = img + label = Label(root, image=img) label.pack() root.mainloop() |