put a text in a div an make go to the line in responsive code example Example: how to find the text inside button in tkinter my_text = my_button.cget('text')