aautosclae frame with window size tkinter code example
Example 1: python tkinter window size
#import statement
from tkinter import *
#create GUI Tk() variable
gui = Tk()
#set window size
gui.geometry("widthxheight")
Example 2: my_frame1 = Frame(my_notebook, width=500 height=500 bg="black")
my_frame1 = Frame(my_notebook, width=500 height=500 bg="black")