Dec-07-2020, 09:16 PM
Why? If you want to access the button that called a finction it is easier to just pass the button as an argument.
self.firstcommandbutton.configure(command=lambda x = self.firstcommandbutton: self.Second(x)) def second(button): print(button['text']