Tkinter.Button.winfo_pathname

Button.winfo_pathname(id, displayof=0)

Return the pathname of the widget given by ID.