Re: [Boa Constr] Shell enhancements part 2
Status: Beta
Brought to you by:
riaan
From: Riaan B. <riaan@e.co.za> - 2001-06-14 15:02:26
|
Hi, "Patrick K. O'Brien" wrote: > > I dug a little more into PythonWin because they are also using Scintilla, > and I found that they use a configuration file with the excerpts I've pasted > below. Then I looked for something similar in boa and couldn't find > anything. I looked at PrefsKeys.py, PrefsMSW.py and ShellEditor.py but > didn't see anything that stood out as relevant. I think a keybinding > configuration file would be nice. PythonWin lets you have a configuration > file that is based on another and overrides it (kind of like inheritance). > That way you leave the default bindings file alone. I like that approach. An > example of that is included below as well. Is any of this doable? > Reasonable? Desireable (to anyone else)? They use a configuration file Boa uses a source file. In PrefsKeys.py every configurable keybinding used in Boa is listed in the keyDefs dictionary. I have just added the following snippet to the end of PrefsKeys.py: try: from PrefsCustomKeys import overrideKeyDefs except ImportError: pass else: keyDefs.update(overrideKeyDefs) Now add your own CustomPrefsKeys.py defining overrideKeyDefs with all the keys you want to redefine. If anybody has redefined PrefsKeys.py to match other editors, please mail it to me. -- Riaan Booysen ___________________________________________________ Boa Constructor - RAD GUI building IDE for wxPython http://boa-constructor.sourceforge.net |