Sane Editables
Christian Reis
kiko at async.com.br
Tue Jul 15 17:27:44 BRST 2003
After being aggravated for ages about GtkEntry and co.'s behaviou, I
checked in today a function in Views.py that implements `sane'
editables:
Modified Files:
Views.py
Log Message:
Implement enable_sane_editables(), which makes GtkEntry and GtkText
work in a less brain-dead fashion. In this mode, tabbing into a
GtkEntry, GtkSpinButton or GtkCombo selects the text (and if you
clobber it, Control-Z restores it); tabs are also *not* allowed in
GtkText widgets.
I chose not to implement selection for GtkText because I think it's
quite unusual. Feel free to complain if you disagree.
If anybody has any comments about it, feel free to raise their voice. To
enable it (for *all* Views in your code), try:
Views.enable_sane_editables()
before instantiating your first view (right after importing Kiwi.Views
works nicely).
Take care,
--
Christian Reis, Senior Engineer, Async Open Source, Brazil.
http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL
More information about the Kiwi
mailing list