You can simply do:
my_text = my_button['text']
Tkinter allows you to access any widget option this way ( height , width , text , etc.)
If you need this as a method call, you can use .cget :
my_text = my_button.cget('text')
Please note that this method is available for all standard Tkinter widgets.
source share