it's been a while since my last announcement, so I thought I'd
jump in and make another one. I am happy to announce the birth of my
latest child, ShortcutEditor.
NOTE: ShortcutEditor requires AGW 0.9.3 or the latest SVN, due to the
enhancements I made to GenericMessageDialog, CustomTreeCtrl and
HyperTreeList.
Description
===========
ShortcutEditor is a widget that allows the user to customize and change keyboard
shortcuts via a dialog. It can be used to edit `wx.MenuItem` shortcuts
or accelerators
defined in a `wx.AcceleratorTable`.
The interface itself is very much inpired by the GIMP shortcut editor:
http://graphicssoft.about.com/od/gimptutorials/tp/keyboard-shortcut-editor.htm
There are very few minor UI differences between ShortcutEditor and the GIMP one,
although the behaviour should be pretty much equivalent.
Various features:
* Shortcuts are listed in a tree-like structure, pretty much reflecting a menu
hierarchy (as most of the time ShortcutEditor is used to edit `wx.MenuItem`
shortcuts);
* Accelerators defined via `wx.AcceleratorTable` are handled in a similar way;
* Support for I18N;
* Ability to restore default shortcuts/accelerators via a UI button;
* Possibility to send back the new/updated shortcuts to the original
`wx.MenuBar` or the original `wx.AcceleratorTable`;
* Filters on the shortcuts label (case-insensitive);
* Basic help window with instructions (customizable via SetHTMLHelpFile),
via the ``Help`` button.
The docstrings should explain relatively well how to use it, and I am
currently re-building the AGW documentation for the new 0.9.3 version.
Source code: the wxPython SVN repository (please remember to update
the whole of AGW).
Please let me know if you encounter any issue, although patches are
much more welcome :-)
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
>>> import PyQt4.QtGui
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
ImportError: No module named PyQt4.QtGui
>>>
>>> import pygtk
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
ImportError: No module named pygtk
>>>
>>> import wx
>>>
>>>
2012/3/5 Andrea Gavana <andrea...@gmail.com>:
> Hi All,
>
> it's been a while since my last announcement, so I thought I'd
> jump in and make another one. I am happy to announce the birth of my
> latest child, ShortcutEditor.
That's great! I will surely look into making good use of this widget
for Task Coach.
Thanks, Frank