From: Kevin A. <al...@se...> - 2004-12-09 17:50:08
|
On Nov 25, 2004, at 12:57 AM, Luanne Coutinho wrote: > Hello, > > I've used PythonCard to create my GUI. I'd like to know how I can set > a maximum length limit for a textfield? > > Thanks, > Luanne > > -- > http://ladyluanne.blogspot.com > There isn't such an option in wxPython. The only way to do this AFAIK is to catch one of the key events such as keyPress and if you are over the max length, don't add the character. You could also catch the textUpdate event, which might be better since it should handle paste operations as well. ka |