Tkinter - Entry - Validation

preview_player
Показать описание
I'll show you how to validate data in an Entry widget in Tkinter.

In the example project, we will set a limit of 5 characters maximum that can be entered in our entry widget. If our user tries to type in more than 5 characters, the entry widget won't show any additional characters.

0:00 Intro
0:52 Demo app
1:28 Starter code
1:56 Create a class
4:34 Add validation
10:32 Validation options
12:04 Validate command explanation
16:40 Validate clipboard data
17:55 Not allow numbers at the beginning
19:28 Register method
21:27 Closure

Documentation website:

#tkinter #pythongui #python3 #pythonguitutorial
Рекомендации по теме
Комментарии
Автор

Great production, enjoyable teaching style. I'm looking foward to many more videos.

python-pyqt
Автор

Very helpful tutorial as usual, I will be using it in my projects 👍

govinej
Автор

Great video.
It would also be interesting to make a video teaching how to create an entry with a mask( year/month/day) and validate a date.

mrkalvinbs
Автор

Hi JobinPy, thank you so much. It's a very interesting Video. Only one question: I'm trying to create your class in a different python file. Unfortunately it didn't work for me. I spent an hour or so to get it working. I think it's the root.register, which results in an error. Can you give me an example how to use your class in a different file, so I can make an instance of it in my main python file?

harryterhuerne
Автор

thanks once again for a cool tkinter vid :)

Hubert
Автор

Very nice tutorial, thats exact what I need, I am shure wrote the code exactly as you did but get errors
cant finde the code to copy from. May be I did a mistake. The link in the description get a 404 error

rainermuller-knoche
Автор

hi jobin.. every day we make count +=1 till your next video..

bentsionben-david
Автор

Thank you
Please make video on autocompletion entry without class

qouserparveen
Автор

after validation how delete character since backspace is not working

praveenremix
Автор

how to make multiple validation for different entry widgets? tnx 🙏🏻🙏🏻

bentsionben-david