It doesn't work that way. Have your button call a single method that calls the other methods you need.
How to map multiple functions to a ttk button
Domanda
I have been trying to map multiple functions to a single python ttk button. It keeps shooting me a conflicting argument error. What am I missing?
Tried:
ttk.Button(mainframe, text="decode", command=reverse, shift).grid(column=5, row=3, columnspan=2, rowspan=1)
Tried:
ttk.Button(mainframe, text="decode", command=reverse shift).grid(column=5, row=3, columnspan=2, rowspan=1)
Tried:
ttk.Button(mainframe, text="decode", command=reverse command=shift).grid(column=5, row=3, columnspan=2, rowspan=1)
Searched google and I must be searching for the wrong thing. Help please.
Soluzione
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow