|
Re: Verifying Entry inputs: msg#00151gnome.gtk+.python
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> |
|---|---|---|
| Previous by Date: | Threading on win32: 00151, Hugo Hallqvist |
|---|---|
| Next by Date: | Re: Verifying Entry inputs: 00151, Christian Reis |
| Previous by Thread: | Re: Verifying Entry inputsi: 00151, Gustavo J. A. M. Carneiro |
| Next by Thread: | Re: Verifying Entry inputs: 00151, Hans-Joachim Widmaier |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |