# Import module
from tkinter import *
# Create object
root = Tk()
# Adjust size
root.geometry("400x400")
# Specify Grid
Grid.columnconfigure(root, index = 0,
weight = 1)
Grid.rowconfigure(root, 0,
weight = 1)
# Create Buttons
button_1 = Button(root, text = "Button 1")
# Set grid
button_1.grid(row = 0,
column = 0, sticky = "NSEW")
# resize button text size
def resize(e):
# get window width
size = e.width/10
button_1.configure(font=({font},size)) #replace {font} with your font
# it will call resize function
# when window size will change
root.bind('<Configure>', resize)
# Execute tkinter
root.mainloop()