0

Lambda and partial is not working in gui tkinter button command can any body say the solution

31st Jul 2021, 4:23 PM
MUTHURAJ.R
MUTHURAJ.R - avatar
6 Réponses
+ 1
It should work if it's this way: 1. To give non-argument functions: Button(command = some_func) 2. To give argument accepting functions: Button(command = lambda: some_func(some_val)) For partial, try this: Button(command = lambda: __import__("functools").partial(some_func, val_1, val_2, ...)(some_val))
4th Aug 2021, 8:41 AM
abhinav
abhinav - avatar
+ 4
Jan Markus Didn't the repair shop give you a replacement ball? What a disappointing customer service!
1st Aug 2021, 8:01 AM
Lisa
Lisa - avatar
+ 3
Jan Markus nono... I bought one too. There was a teabag in the package for exactly this scenario. It is the fallback solution (gemans and especially ostfriesen call it Teesatzlesen). did you.... drink the tea??????
2nd Aug 2021, 5:23 PM
Oma Falk
Oma Falk - avatar
+ 3
Lisa ohhh that data scientists!!! Did u use pandas or R for that result?
2nd Aug 2021, 5:31 PM
Oma Falk
Oma Falk - avatar
+ 1
Oma Falk I'm very experienced in reading the tea leaves. Give me a second, I'll have a look 🍵... ... Okay, it says: Get another cup!
2nd Aug 2021, 5:29 PM
Lisa
Lisa - avatar
+ 1
MUTHURAJ.R we are not laughing about you. SL is a funny community that jokes as joke can.
2nd Aug 2021, 5:32 PM
Oma Falk
Oma Falk - avatar