Skip to Main Content
Tkinter GUI Application Development Blueprints
book

Tkinter GUI Application Development Blueprints

by Bhaskar Chaudhary
November 2015
Beginner to intermediate content levelBeginner to intermediate
340 pages
7h 29m
English
Packt Publishing
Content preview from Tkinter GUI Application Development Blueprints

Validating user input

Let's discuss input data validation in Tkinter.

Most of the applications that we have developed in our book are point and click-based (the drum machine, game of chess, and drawing application), where a validation of user input is not required.

However, data validation is a must in programs such as the phonebook application, where a user enters some data and we store it in a database.

Ignoring user input validation can be dangerous in such applications because input data can be misused for SQL injection. In general, an application in which a user can enter textual data is a good candidate for the validation of user input. In fact, not trusting user inputs is almost considered a maxim.

Wrong user input may be intentional or accidental. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Python Application Development

Learning Python Application Development

Ninad Sathaye

Publisher Resources

ISBN: 9781785889738Supplemental Content