def save_image_as(window: tk.Tk) -> None: """Prompt for an Image file name to save the image in the Tk window""" # Keep a reference to the picture so it can be modified. window.img = window.SaveFileAs() update_image(window, window.img)