I am learning tkinter and was wondering if there was a way to make my window non-resizeable. Google's AI and StackOverflow both lead to py root.resizeable(False, False) I've tried this (yes my tkinter window is named root aswell, so it's not a naming issue), and I keep getting the error " Unresolved attribute reference 'resizeable' for class 'Tk' ". Any Ideas what might be up? My code (with a resizeable window) is:
import tkinter as tk
root = tk.Tk()
root.geometry("415x420")
root.title("Tkinter Window")
icon = tk.PhotoImage(file='pythonlogo.png')
root.config(background='dark gray')
root.iconphoto(True, icon)
root.resizeable(False, False)
title = tk.Label(root, text='Title', font=('Times New Roman', 35, 'bold'))
title.pack()
quitButton = tk.Button(root, text='Close', font=('Times New Roman', 12), compound='bottom', command=quit)
quitButton.pack()
root.mainloop()```