[pygtk] Using changed event
Nikos Kouremenos
kourem at gmail.com
Tue Jan 31 02:28:01 WST 2006
use keypress
On 1/30/06, Nicholas Wieland <nicholas_wieland at yahoo.it> wrote:
> Hi *,
> I need to trap all non-digits in a gtk.Entry, to prevent hte user
> from inserting letters and symbols at all.
> I'm trying to use the 'changed' event, but it doesn't seem to work:
>
> def foo (self, widget):
> if re.match ('[A-Za-z,.\-+]', widget.get_text () [-1]):
> return True
>
> Any idea ?
>
> TIA,
> --
> Nicholas Wieland
> nicholas_wieland at yahoo.it
>
>
>
>
>
>
>
>
> ___________________________________
> Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
> http://mail.yahoo.it
> _______________________________________________
> pygtk mailing list pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
>
--
Nikos Kouremenos
More information about the pygtk
mailing list