[pygtk] Reset form

Matthias Teege mteege at gmail.com
Wed Oct 6 21:14:46 WST 2004


Moin,

I have a form with a lot of entry widgets. To clear the form I call
set_text('') for every entry. Is there a better/faster/better looking
way to reset a form? I ask because 'set_text('')' is not correct in
sense of the underlying database where an empty value is NULL not ''. 
It would be also cool if the entry widget can handle None. At the
moment I've get a "TypeError: GtkEntry.set_text() argument 1 must be
string, not None" if I try to set_text(None).

Many thanks
Matthias


More information about the pygtk mailing list