Using button functions with arguments in tkinter

  Рет қаралды 15,929

Atlas

Жыл бұрын

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.
You can get the code here: github.com/clear-code-projects/tkinter-complete/blob/main/1%20widgets/1_4_button_func_args.py

Пікірлер: 8
@mr.salph9871
@mr.salph9871 Жыл бұрын
Thanks helped me a lot. I used to have so many problems like this but now they are solved and again Thanks
@sonu-jangir
@sonu-jangir 11 ай бұрын
Thank you sir. Really helpful video.❤🎉
@graffillk9614
@graffillk9614 11 ай бұрын
Thank you a lot this really help me
@vishwanaathh7962
@vishwanaathh7962 Жыл бұрын
Thank you so much dude..
@Mr99ZK
@Mr99ZK 11 ай бұрын
Interesting, when I try to use lambda my antivirus program flags it as a suspicious script. I did not need it anyway.
@prateekyadav9811
@prateekyadav9811 Ай бұрын
I don't understand why we can't just use inner_func directly in the command parameter :/
@StatusFreaks
@StatusFreaks Жыл бұрын
button = Button(wn, text=str(i),width=5,command=lambda i=i:ClickButton(i)) Can you please explain this
@justinduim6093
@justinduim6093 Жыл бұрын
Ah first comment ;D... Thanks for the very well explained tutorials!
ЧУТЬ НЕ УТОНУЛ #shorts
00:27
Паша Осадчий
Рет қаралды 10 МЛН
ВОДА В СОЛО
00:20
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 31 МЛН
КАК ДУМАЕТЕ КТО ВЫЙГРАЕТ😂
00:29
МЯТНАЯ ФАНТА
Рет қаралды 10 МЛН
ЧУТЬ НЕ УТОНУЛ #shorts
00:27
Паша Осадчий
Рет қаралды 10 МЛН