I want to run multiple functions when I click a button. For example I want my button to look like
self.testButton = Button(self, text = "test",
command = func1(), command = func2())
when I execute this statement I get an error because I cannot allocate something to an argument twice. How can I make command execute multiple functions.
You can simply use lambda like this:
You can use the lambda for this:
You could create a generic function for combining functions, it might look something like this:
Then you could create your button like this:
maybe?
I guess maybe you could do something like
but that is really gross ...
Button(self, text="text", command=func_1()and func_2)