Using button functions with arguments in tkinter

preview_player
Показать описание
This video covers how to use functions in buttons with arguments. If you understand functions well, or can use lambda functions, you can probably skip this video.

Рекомендации по теме
Комментарии
Автор

is what i needed but not what I wanted thanks

pan-efxg
Автор

Thanks helped me a lot. I used to have so many problems like this but now they are solved and again Thanks

mr.salph
Автор

Thank you sir. Really helpful video.❤🎉

sonu-jangir
Автор

Interesting, when I try to use lambda my antivirus program flags it as a suspicious script. I did not need it anyway.

MrZK
Автор

I don't understand why we can't just use inner_func directly in the command parameter :/

prateekyadav
Автор

Or you can make a class which instance is callable.

razuahmed
Автор

button = Button(wn, text=str(i), width=5, command=lambda i=i:ClickButton(i))
Can you please explain this

StatusFreaks
Автор

Ah first comment ;D... Thanks for the very well explained tutorials!

justinduim