From: Guido van Rossum Date: Thu, 7 Sep 1995 19:45:52 +0000 (+0000) Subject: simplified no Tk() sets _default_root X-Git-Tag: v1.3~141 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bbf817557f5a7d1e1927db046a1599552df74400;p=thirdparty%2FPython%2Fcpython.git simplified no Tk() sets _default_root --- diff --git a/Demo/tkinter/guido/imageview.py b/Demo/tkinter/guido/imageview.py index 541c96adeab3..d6efed0b2bb8 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()