summaryrefslogtreecommitdiffstats
path: root/Demo/tkinter
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/tkinter')
-rwxr-xr-xDemo/tkinter/guido/imageview.py3
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()