logo       

Re: Verifying Entry inputs: msg#00151

gnome.gtk+.python

Subject: Re: Verifying Entry inputs

On Fri, Feb 25, 2005 at 09:11:56AM +0100, Hans-Joachim Widmaier wrote:
> I'd like to have Entry widgets that allow only numbers (float) as inputs, and
> only
> in a certain range. This verification should be done as soon as the user is
> done
> with editing. I tried the focus-out-event, but pygtk didn't like me bringing
> up a
> modal (error) dialog in the callback. Second try was with an insert-text
> handler
> which just ignored invalid inputs. It looks like this:

On the general topic of input validation, I have a few comments at

http://bugzilla.gnome.org/show_bug.cgi?id=50276

which may interest you.

Take care,
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 3361 2331
_______________________________________________
pygtk mailing list pygtk@xxxxxxxxxx
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise