Widget for changing keyboard shortcuts?

Hi,

Anyone know of a (open source) wxPython widget for allowing users to
change keyboard shortcuts?

Thanks, Frank

1. If you are interested in changing or adding keyboard shortcuts to
your app (frame)
Than you should use the wx.AcceleratorTable.

you can find an excellent tutorial here:

2. You may also use this function wxPython API Documentation — wxPython Phoenix 4.2.2 documentation
to bind any combination of keyboard keys to an event.

3. You may also use pyHook to hook the keyboard events.

···

On Jan 21, 11:08 pm, Frank Niessink <fr...@niessink.com> wrote:

Hi,

Anyone know of a (open source) wxPython widget for allowing users to
change keyboard shortcuts?

Thanks, Frank

Hi Michael,

1. If you are interested in changing or adding keyboard shortcuts to
your app (frame)
Than you should use the wx.AcceleratorTable.

I'm sorry I wasn't clear. I am looking for a *widget* (or dialog) to
plug into my application (Task Coach) that lets users change the
keyboard shortcuts. I would feed it a list of (function, current
shortcut)-tuples and it would display that in some sort of table. Then
the user could rearrange the keyboard shortcuts (and maybe type new
ones) and after s/he clicked OK I would be able to read the new list
of (function, shortcut)-tuples and apply it to the program.

Thanks, Frank

···

2012/1/22 Michael Gorelik <smgorelik@gmail.com>:

Hi Frank,

The Peppy editor has a keyboard shortcut editor -- it may be too built
in to Peppy to be useful, but may be worth a look:

http://peppy.flipturn.org/

And it's a very nice editor, by the way!

-Chris

···

On Sun, Jan 22, 2012 at 6:09 AM, Frank Niessink <frank@niessink.com> wrote:

Hi Michael,

2012/1/22 Michael Gorelik <smgorelik@gmail.com>:

1. If you are interested in changing or adding keyboard shortcuts to
your app (frame)
Than you should use the wx.AcceleratorTable.

I'm sorry I wasn't clear. I am looking for a *widget* (or dialog) to
plug into my application (Task Coach) that lets users change the
keyboard shortcuts. I would feed it a list of (function, current
shortcut)-tuples and it would display that in some sort of table. Then
the user could rearrange the keyboard shortcuts (and maybe type new
ones) and after s/he clicked OK I would be able to read the new list
of (function, shortcut)-tuples and apply it to the program.

Thanks, Frank

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en

--
--

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov