custom button tkinter module code example
Example 1: how to find the text inside button in tkinter
my_text = my_button.cget('text')
Example 2: add a button on tkinter
import tkinter
button1 = ttk.Button(self, text="anything", command=random command)
button1.pack()