Using tkinter, how does one add arguments to functions called by buttons? For example I have the line:
but what if self.login has parameters, like requiring a username parameter and password parameter? commands called by buttons, or any tkinter object, don't seem to have any way to send arguments to the functions that they call. I have of course tried:
which does not work.
Thanks ahead of time,
- Adam
Code:
b = Button(parent, command = self.login)
Code:
b = Button(parent, command = self.login(username = user, password = password))
Thanks ahead of time,
- Adam
Comment