Answers for "how to change the text align of button in python tkinter"

3

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
Posted by: Guest on May-31-2021
-2

center buttons tkinter

button.place(relx=0.5, rely=0.5, anchor=CENTER)
Posted by: Guest on June-11-2021

Code answers related to "how to change the text align of button in python tkinter"

Python Answers by Framework

Browse Popular Code Answers by Language