From bbf817557f5a7d1e1927db046a1599552df74400 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 7 Sep 1995 19:45:52 +0000 Subject: simplified no Tk() sets _default_root --- Demo/tkinter/guido/imageview.py | 3 +-- 1 file changed, 1 insertion(+), 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() -- cgit v0.12