[pygtk] Re: pygtk Digest, Vol 58, Issue 22

Stephen Kennedy stevek at gnome.org
Fri Dec 21 21:15:03 WST 2007


>  ...
> >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?

I've used idle_add successfully to avoid this arbitrary time delay choice.

I have found notebook to be a little strange - if you try to make an
interface tabbed, you'll find many things which work with normal
containers won't work with notebook.

Stephen.


More information about the pygtk mailing list