--
You received this message because you are subscribed to the Google Groups "spyder" group.
To view this discussion on the web visit https://groups.google.com/d/msg/spyderlib/-/iAJonFU2mNcJ.
To post to this group, send email to spyd...@googlegroups.com.
To unsubscribe from this group, send email to spyderlib+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spyderlib?hl=en.
I thought of is a more reliable instrument to find the relevant piece
of code - it is a panel that show what happens when you press a key.
This requires:
1. [ ] create panel that can be called from '?' menu entry - probably
called 'Internal messages...'
2. [ ] add function that is called when key is pressed and logs action
and piece of code that it is going to call
Two questions here:
- is that possible at all?
- how seriously it will affect performance?
3. [ ] add checkbox on the messages panel that will allow to
dynamically turn on/off messages from keypresses
Possible message format:
(component) Action, Param1, Param2, ...
Possible format for keys handling component:
(core.keys) Ctrl-F, Action(), Location
Possible format for Location component:
{spyder}.utils.something - message from spyderlib
{plugin}.something - message from external plugin
This will require adding a separate function to add shortcuts. As a
side effect, such function can be used to maintain a registry of
available keys, to show it and spit warnings when on attempt to add
duplicate keys. Maybe Qt maintains such list and handles conflicts
itself already?
--
anatoly t.
2011/9/23 Carlos Córdoba <ccord...@gmail.com>: