Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Align text in tkinter Button

By default text in Button is centered but I want it to be aligned to the left so when I type more text than the button can display it wont cut the start of the sentence/word. Thanks for help.

like image 931
Martin Pavelka Avatar asked Oct 22 '25 04:10

Martin Pavelka


1 Answers

You can use anchor="w" when defining the button. However, some platforms may ignore that. For example, on older version of OSX the text will always be centered.

like image 112
Bryan Oakley Avatar answered Oct 23 '25 20:10

Bryan Oakley



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!