Intro to PySimpleGUI - Part 5 - Form Validation

preview_player
Показать описание

This tutorial walks through how to validate data on submission in PySimpleGUI. See the timestamps below to skip around as needed.

Join the CS Classroom Discord for help and fun:

00:00 - Intro
04:45 - validate() Function
07:15 - Validating Text Inputs
10:15 - Validating Radio Group (Gender Options)
11:52 - Validating Calendar Input (Dates and Times)
22:20 - Validating Listbox (List of Options)
26:07 - Putting everything into the Event Loop & Generating Error Message
31:27 - Fixing Errors

#python #pysimplegui #coding #programming
Рекомендации по теме
Комментарии
Автор

I am a complete newbie, could you actually show how to make sure that only text is in "name" and only numbers are in "passport number" for the sake of explanation, please?

anyamowll
Автор

Thanks for sharing this. I was doing all the checking in the while loop instead of a function. This is far more elegant and I guess more pythonic.

pieterjdw
Автор

Hi can you please show below the validation code for only entering letters in the name, no numbers

Revintage-ebdh
join shbcf.ru