Introduction to the Python tkinter button widget

preview_player
Показать описание
This lesson looks at how a button can be placed on a GUI. In addition it shows how a process can be 'connected' to the clicking of the button.
Рекомендации по теме
Комментарии
Автор

The clarity of the presentation is a work of art. It is beautiful. There was nothing I did not already know, yet I was mesmerized.

HWKier
Автор

so thorough! You are the teacher I was looking for!

horoshuhin
Автор

Excellent Phil, I hope you enjoyed making these tkinter videos as much as I enjoyed watching them, thank you. I am hoping that you will demonstrate some code driving a GUI.

SusanAmberBruce
Автор

Best video ever!!!!Thanks sir....please keep on doing this work!!!

aravindr
Автор

Hi John, I am new subscriber to your channel. I have been watching this playlist from last three days. Your way of explanation is awesome. I am new to the programming and also to Pyhton. I have few doubts on Button object. Can you please take a look and share your thoughts please!


1. In my window I have one entry object and one button object. If there is any entry(input from user) then only I want to activate my button, until then it should be disabled. Is that possible? I thought it could be possible with the 'state' argument of button, then tried but couldn't pass.


2. Considering the above example we are taking some string input through entry object, after that to get the result user will click the button.
And for suppose if our programme takes long time to produce result, then user may get frustrated and will click the button again and again. Is there a chance to avoid this?
solution like disable the button once the button clicked and activate once the result was produced.

venkateshgandi
Автор

Sr. I have a question... I'm using a set of entries to read data from user then a button to call a function to calculate. This function is recursive, I've tested it individually and isolated and works fine, but when it is called from the button I get a recursion error, max depth. Why? It has to do with the mainloop()? Thank you

colosal
Автор

I have a doubt here. If I click the button more than once, the add_label function will process and place more than one label with the same name, which should create namespace problems! What am I missing?

vascoalmeida
Автор

Suppose I've a programme with password and clicking the button in entry will enable, so what will be function like

nabirakpaints
welcome to shbcf.ru