def open_image(window: tk.Tk) -> None: """Prompt for an Image file, load that image, and display it in the Tk window""" # Keep a reference to the picture so it can be modified. window.img = window.OpenFile() update_image(window, window.img)