I'll preface this with, I am very new to programming. I'm trying to resize my tkinter window "background_app" automatically to any photo that I import into the app. I've seen threads with examples, but they usually create a new class. I'm not at the level of creating a new class yet and I'm wondering if I can do the task without creating a new class. Below is my code with the size currently set to "600x600." Does anyone have any suggestions? Thank you.
import tkinter as tk
from PIL import Image, ImageTk
def main():
buttons()
def buttons():
background_app = tk.Tk()
background_app.title(input("Title? "))
path = r'C:\Users\Kate\Desktop\Rockphoto.jpg'
img = ImageTk.PhotoImage(Image.open(path)) #Creates Tkinter photo image
background_app.geometry("600x600")
route_image = tk.Label(background_app, image = img)
route_image.pack() #Packs widgets in rows or columns
background_app.mainloop()