On Thu, Jun 04, 2009 at 08:27:13AM -0400, Mike Bernson wrote:
> I have a notebook that I want to control where the focus goes on page 
> switches.
> 
> I connect to the switch-page signal.
> 
> In the handle for the switch-page signal I set the focus to a Entry widget. 
> The
> focus ends up on the tab for the page. If I call idle_add with function to 
> set the
> focus to the Entry widget it works.
> 
> I do not like using the idle_add to set the focus widget. It looks like a 
> hack and
> I would like to find a better way to handle this.


I don't really know, but just guessing the switched is not yet completed
when you try to focus and the corrent page is not yet changed I'd try using
'connect-after', or connecting to 'focus-tab'

sandro
*:-)
_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to