use keypress

On 1/30/06, Nicholas Wieland <[EMAIL PROTECTED]> 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
> [EMAIL PROTECTED]
>
>
>
>
>
>
>
>
> ___________________________________
> Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
> http://mail.yahoo.it
> _______________________________________________
> pygtk mailing list   [email protected]
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
>


--
Nikos Kouremenos
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to