0

How to add 2 functions on single button using Python...help me please.

tkinter

8th Aug 2019, 3:25 PM
Kumar Prince Vidyarthi
Kumar Prince Vidyarthi - avatar
8 Réponses
+ 2
nest the function call. make one function call the next. edit~ https://code.sololearn.com/c4LNQJY3WmWL/?ref=app
8th Aug 2019, 4:08 PM
James
James - avatar
+ 1
lambda x, y: (func1(x), func2(y)) It creates a function, that calls 2 functions and returns their values as a tuple of 2 items.
8th Aug 2019, 4:18 PM
Seb TheS
Seb TheS - avatar
+ 1
I'd recommend to get familiar with module "functools" when working with tkinter.
8th Aug 2019, 4:20 PM
Seb TheS
Seb TheS - avatar
+ 1
If you understand lambdas and not how to call multiple functions at once.../palm
8th Aug 2019, 4:22 PM
James
James - avatar
+ 1
James tkinter is sometimes very annoying when working with functions.
8th Aug 2019, 4:23 PM
Seb TheS
Seb TheS - avatar
0
will call the button by the nest function?
8th Aug 2019, 4:10 PM
Kumar Prince Vidyarthi
Kumar Prince Vidyarthi - avatar
0
thanks
8th Aug 2019, 4:20 PM
Kumar Prince Vidyarthi
Kumar Prince Vidyarthi - avatar