Hi all. I just completed a tool for my app which automatically adjusts mnemonics in a window to make them as readable as possible. I did after feeling frustrated by constantly creating mnemonic conflicts accidentally and realizing that controlling mnemonics with i18n would be far too difficult a task.
So I created mnemonic_manager, which includes a simple class that can be fed mnemonic widgets one at a time or handed a glade file from which it will harvest all mnemonic widgets. It then tries to reassign mnemonics to create as few conflicts as ever, optionally keeping some mnemonics "untouchable." With glade files, mnemonic_manager defaults to make top-level menu items untouchable so that e.g. "File" will always be "_File". mnemonic_manager also handles notebook's and properly. Anyway, I thought this was kind of neat, if a little crazy, so I wanted to share it with the pygtk developer world and thought I'd paste a link to it here. As a frequent keyboard user and gtk-application-user, I figure anything I can do to make it easier to make apps usable from the keyboard is good for the world. http://cvs.sourceforge.net/viewcvs.py/grecipe-manager/grm/src/lib/Attic/mnemonic_manager.py On a slightly different topic, is there any current wiki-type site for pygtk recipes specifically? I'm just curious because I know I end up writing a lot of modules as convenience methods for myself as I access pygtk, and I imagine others do as well. Surely I could be doing a better job not reinventing the wheel / sharing my efforts -- any pointers? Thanks, Tom _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
