text align tkinter code example
Example: how to align text in tkinter
Label(root, text='Pack', anchor='w').pack(fill='both')
# anchor='w' ---- w for left
# anchor='e' ---- e for right
# anchor='center' ---- center for center
Label(root, text='Pack', anchor='w').pack(fill='both')
# anchor='w' ---- w for left
# anchor='e' ---- e for right
# anchor='center' ---- center for center