I am trying to make a tkinter label that stays in the middle of the root window and resizes along with it.
Is there any simple way to do that with using just .place()
- and not using .grid()
?
Here is my code:
from tkinter import *
root= Tk()
root.geometry('200x200')
my_label= Label(root, text= 'Hello World!', font= ('Calibri', 20))
my_label.place(relx= 0.5, rely= 0.5, anchor= CENTER)
root.mainloop()