Limitting the Contents of an Entry Widget in Tkinter

Markus Weihs mweihs at
Sun Jan 15 02:45:31 EST 2006

Am Sat, 14 Jan 2006 13:24:01 -0800 schrieb Dustan:

> How do I limit what the user can enter in an Entry Widget? I know I can
> set it to display '*' to hide a password, but what I want to do is
> limit the contents to numeric characters. What is the easiest way of
> doing this?


Fredrik Lundh's ValidateEntry might be what you want.

Regards, Markus

More information about the Python-list mailing list