Now I now that there are already tons of similar questions out there but none of them have worked and many are outdated. From what I've gathered people are always recommending the grid_rowconfigure
and grid_columnconfigure
, but that doesn't deal with text sizes. Here's a simple example:
from tkinter import *
root=Tk()
l1 = Label(root, text="This", borderwidth=2, relief="groove")
l1.grid(row=0,column=0,sticky='NSEW')
l2 = Label(root, text="That", borderwidth=2, relief="groove")
l2.grid(row=0,column=1,sticky='NSEW')
for i in range(1):
root.grid_rowconfigure(i, weight=1)
for i in range(2):
root.grid_columnconfigure(i, weight=1)
root.mainloop()
I found this site but it's from 2010 and copy pasting it got me no results (after dealing with import names of course)