Commit bbf81755 authored by Guido van Rossum's avatar Guido van Rossum

simplified no Tk() sets _default_root

parent 55618efa
......@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment