Programs that have multiple panes usually have a shortcut to jump around them. For instance, Treepad uses ctrl-tab. But I already have flatNotebook in one pane, and ctrl-tab is also used for switching tabs. Is there a shortcut that's used in a few programs that's not ctrl-tab? For that matter, I couldn't find how to change it in flatnotebook.py. Is it using wx.EVT_NAVIGATION_KEY, it seems, but how then it knows if it's ctrl-tab or ctrl-alt-tab for reverse switch? There's event.GetDirection() call there, I feel like I'm a little lost. I'm thinking maybe I should use ctrl-right and ctrl-left to change tabs and ctrl-tab to cycle through 3 areas of the application. thanks! -ak
Peter Damoc wrote:
You could try to use the F keys for areas or simply numbers.
F1 - Area 1
F2 - Area 2If you already have actions associated with them use a CTRL+F combo.
Well, F1 and F2 are quite a bit out of home row, this app is going to be
keyboard heavy, like the Vim, so I want to follow same principle of staying
on home row. Ctrl-F is traditionally search command, so that's how it works
already. I was thinking also of ctrl-1 and -2 and -3 but that's usually what's
used for windows/tabs. I think I'll just have to figure out to change behaviour
of tab switching..
ยทยทยท
Peter
On Tue, Mar 18, 2008 at 7:38 AM, AK <andrei.avk@gmail.com > <mailto:andrei.avk@gmail.com>> wrote:
Programs that have multiple panes usually have a shortcut to jump
around
them. For instance, Treepad uses ctrl-tab. But I already have
flatNotebook in one pane, and ctrl-tab is also used for switching
tabs.
Is there a shortcut that's used in a few programs that's not ctrl-tab?
For that matter, I couldn't find how to change it in
flatnotebook.py. Is
it using wx.EVT_NAVIGATION_KEY, it seems, but how then it knows if
it's
ctrl-tab or ctrl-alt-tab for reverse switch? There's
event.GetDirection() call there, I feel like I'm a little lost. I'm
thinking maybe I should use ctrl-right and ctrl-left to change
tabs and
ctrl-tab to cycle through 3 areas of the application. thanks! -ak---------------------------------------------------------------------
To unsubscribe, e-mail:
wxPython-users-unsubscribe@lists.wxwidgets.org
<mailto:wxPython-users-unsubscribe@lists.wxwidgets.org>
For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org
<mailto:wxPython-users-help@lists.wxwidgets.org>--
There is NO FATE, we are the creators.
Robin Dunn wrote:
AK wrote:
Programs that have multiple panes usually have a shortcut to jump around them. For instance, Treepad uses ctrl-tab. But I already have flatNotebook in one pane, and ctrl-tab is also used for switching tabs. Is there a shortcut that's used in a few programs that's not ctrl-tab? For that matter, I couldn't find how to change it in flatnotebook.py. Is it using wx.EVT_NAVIGATION_KEY, it seems, but how then it knows if it's ctrl-tab or ctrl-alt-tab for reverse switch? There's event.GetDirection() call there, I feel like I'm a little lost. I'm thinking maybe I should use ctrl-right and ctrl-left to change tabs and ctrl-tab to cycle through 3 areas of the application. thanks! -ak
Depending on the platform and the widgets that are involved then you may be able to just use tab to go through the whole UI, including into and out of subpanels, etc.
That's no good because there's a lot of controls and it would be even slower than just using the mouse to tab 7 or 10 times to get somewhere.. I think as a rule of thumb, at least for my taste, if some action in the program is done very often, it should be possible to do with one keyboard shortcut.. thanks, -ak