[pygtk] Using changed event
Nicholas Wieland
nicholas_wieland at yahoo.it
Mon Jan 30 23:24:22 WST 2006
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
More information about the pygtk
mailing list