PYTHON TKINTER GUI SIMPLIFIED - Entry and Combobox Widget

Опубликовано: 07 Октябрь 2024
на канале: Tech Emmy
147
1

Let's learn how to use the entry and Combobox widget together.

New videos every week. 🔥🔥🔥
Don't miss out!!!

Make sure you like the video and subscribe.
Don't forget to drop a comment below and let me know what you think about the video.

⏲ Timestamps ⏲
0:00 - Intro
0:23 - Setup
0:34 - The Entry Widget
1:06 - Using the 'width' attribute with the Entry widget
1:40 - Changing the 'state' of an Entry widget
2:40 - Auto focusing on the Entry widget
3:07 - Referencing other attributes that can be used with the Entry widget
3:39 - Making our Entry widget more functional/useful
4:16 - Hiding password field in the Entry Widget
5:32 - Making our Entry widget more functional/useful ('textvariabe')
7:51 - Why you should be careful using 'textvariable' along 'text' in a Label Widget
8:45 - Validation on the Entry Widget
18:12 - Conclusion of Entry Widget
18:31 - The Combobox Widget
19:15 - Adding values to a combobox
19:47 - Preventing users from adding custom values ('state')
20:12 - Using height and width with a Combobox
21:07 - Using 'textvariable' with the Combobox widget
21:33 - Handling change in value
23:26 - using 'postcommand' with the Combobox widget
25:15 - Outro

Callback Substitution Codes:
'%d' - Returns 0 for attempted delete, 1 for attempted insertion, -1 if validate is 'focusin', 'focusout' or change to textvariable
'%i' - Returns the beginning of the index of attempted delete or insertion, -1 if validate is 'focusin', 'focusout' or change to textvariable
'%P' - Returns out current text
'%s' - Returns previous text before current change
'%S' - Returns inserted text for attempted insertion and deleted text for attempted deletion
'%v' - Returns the current value for the widget's validate option
'%W' - Returns the name of the widget

🔗 Links 🔗
Frame and Label Widget:    • PYTHON TKINTER GUI SIMPLIFIED - The F...  
Cont. Label Widget:    • PYTHON TKINTER GUI SIMPLIFIED - Cont....  
Link to article containing callback substitution codes: https://anzeljg.github.io/rin2/book2/...
Series Code: https://github.com/techemmy/Python-Tk...

📌Social Media📌
Instagram: @tech_emmy
Twitter: @tech_emmyy
LinkedIn:   / emmanuel-oloyede-935a341a5  

#TechEmmy #python #python3