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'
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
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:
before instantiating your first view (right after importing Kiwi.Views
Christian Reis, Senior Engineer, Async Open Source, Brazil.
http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL
More information about the Kiwi