What I describe in the previous post was about key event getting
ignored. It had nothing to do with cycle-focus' functionality.
Now I found another problem. It's about cycle-focus' functionality. It
has a bug.
As I cycle-focus repeatedly, I don't travel around the three
panes(body,log,outline). Once I get into the log pane, it always goes
back to the body pane.
body = c.frame.body.bodyCtrl
log = c.frame.log.logCtrl
tree = c.frame.tree.canvas
panes = [body,log,tree]
if w in panes:
i = panes.index(w) + 1
if i >= len(panes): i = 0
pane = panes[i]
else:
pane = body
The problem is, the variable "log" and the log pane is different from
each other and hence the if body is by-passed
For example, "log" holds "leoQTextEditWidget: 31135264", whereas
w(current pane) holds <leo.plugins.qtGui.leoQtLog instance at
0x01DF9788> on one running.
On Sat, Jan 9, 2010 at 2:15 AM, June Kim <[email protected]> wrote:
> Hello, everyone.
>
> ctrl-tab (currently binded to cycle-focus) doesn't work in windows
> with pyqt. The event isn't generated at all. Manually calling with
> alt-x "cycle-focus" works. It seems that there is some problem with
> key binding and event catching. Strangely, though, ctrl-shift-tab
> (cycle-all-focus) works just fine.
>
> tk gui(launched with --gui option) works just fine with ctrl-tab.
>
> version info:
> * windows xp sp3
> * Leo 4.7 beta 1
> * PyQt 4.7 rc2-1
> * Python 2.6.4
>
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/leo-editor?hl=en.