[pygtk] Focus Headache
Johan Dahlin
jdahlin at async.com.br
Mon Aug 7 21:08:17 WST 2006
> If you execute the code above, and try to navigate throught the
> widgets using the tab key, you'll note that when the focus leaves the
> target combo, to get into the profile combo, it doesn't focus the
> profile combo's child. The focus goes to the combo button. So, if the
> user would like to quickly type a target, followed by a tab and then
> type a profile name, he will fail and will have to use the mouse to
> click inside the combo to be able to write inside it. I tried to make
> a hack to solve this problem, with the method next, but it doesn't
> work.
>
> I tried to define the toolbars focus_chain using the set_focus_chain
> method, but it made everything worst them ever. When I set the focus
> chain, the behavior is quite strange, and I just can't set focus on
> any widget with the tab key. Maybe, I'm missing something... Can you
> help me, guys?
set_focus_chain works on a per container basis, you can't just call it once
for the toplevel, you might need to call it for each container in your
interface, in your case the window and the boxes.
--
Johan Dahlin <jdahlin at async.com.br>
Async Open Source
More information about the pygtk
mailing list