[pygtk] Focus issue with change of notebook page

Marco Antonio Islas Cruz markuz at islascruz.org
Sat Dec 22 05:06:09 WST 2007


But, remember to return False in order to exit from the
gobjet.timeout_add loop.

if you set the timeout to 100 is almost not noticeable and you
application will not freeze.

On Fri, 2007-12-21 at 17:47 +0000, Nathaniel Smith wrote:
> On Thu, Dec 20, 2007 at 11:35:13AM -0500, Tony Nelson wrote:
> > At 3:49 PM +1100 12/20/07, Neil Dugan wrote:
> >  ...
> > >Haven't tried this exactly, but have you tried putting the
> > >grab_focus() call after a small timeout delay ?
> > >
> > >gobject.timeout_add(500,widget.grab_focus)
> > 
> > How long should the timeout be to not have it ever be too short?  How short
> > should the timeout be so that the user won't interact with the wrong widget?
> 
> 0 might work.  (0 would mean "as soon as you return to the main loop,
> call this function", it's very different from "call this now".)
> 
> -- Nathaniel
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
-- 
<--Linux... Because I'm Free-->
Marco Antonio Islas Cruz
"Markuz"
Linux User #280229
markuz at islascruz.org
markuz at unixmexico.org
markuz at linuxpozarica.com
marco.islas at gmail.com
islacruz at yahoo.com
http://www.islascruz.org
http://sourceforge.net/projects/gpkg/
http://www.linuxpozarica.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20071221/bcbfa48c/attachment.pgp


More information about the pygtk mailing list