figure - sizing the canvas to match the photo example - pp \gui\tour\imgcanvas py gifdir /gifs/from sys import argv from tkinter import filename argv[ if len(argv else 'ora-lp gifwin tk(img photoimage(file=gifdir filenamecan canvas(wincan pack(fill=bothcan config(width=img width()height=img height()can create_image( image=imganchor=nwwin mainloop( tkinter tourpart name on cmdlinesize to img size