Label to the right side of the tkinter window

1.3k Views Asked by At

The Label: "Right Text" should be in the right side of the tkinter window. As highlighted in image.

enter image description here

For that I tried below code, but its not on the right.

m_root = Tk()
m_root.wm_state('zoomed')

label_time = Label(m_root, text="Right Text", anchor="e", justify="right").grid()

m_root.mainloop()
1

There are 1 best solutions below

0
On

label_time.pack(side="right",anchor="n") This might work. anchor positions the text to the top-right corner.