Tkinter - Entry - Validation

Pubblicato il: 11 settembre 2022
sul canale di: JobinPy
3,904
118

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:
https://www.tcl-lang.org/man/tcl8.6/T...

#tkinter #pythongui #python3 #pythonguitutorial


In questa pagina del sito puoi guardare il video online Tkinter - Entry - Validation della durata di ore minuti seconda in buona qualità , che l'utente ha caricato JobinPy 11 settembre 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 3,904 volte e gli è piaciuto 118 spettatori. Buona visione!