filmov
tv
Tkinter button anhor attribute to align the text in different directions #Tkinter #alignText #Button

Показать описание
By using anchor attribute we can align text in different direction on a Tkinter button. The values of anchor can be n,s,e,w or c. It can be combination of these chars to align the text in four corners.
Example: anchor='ne' will align the text in top left corner of the button.
By default anchor='c' or the text is aligned in center of the button.
Example: anchor='ne' will align the text in top left corner of the button.
By default anchor='c' or the text is aligned in center of the button.