How to restrict lenght of entry widget to certain number of character
flupke
flupke at nonexistingdomain.com
Mon May 30 08:54:04 EDT 2005
Michael Onfrek wrote:
> Hi!
> I'm playing with entry again and trying to restrict length of entry
> widget to certain number of character, so users cannot enter more
> character into it. Any ideas?
> Reg. Michael Onfrek
>
What widget set are you talking about, wxPython pygtk, tkinter?
In wxPython:
<ctrl>.SetMaxLength(length)
Benedict
More information about the Python-list
mailing list