> > Consider i got hbox with two widgets. first one is Gnome entry.
> >I am connecting a handler to 'active'. In the handler i want to change the
> >focus to next widget. But i dont have reference to the same. How
> >will i change the focus ?
> >
> Try passing the widget you want to transfer focus to as an argument to
> the signal handler:
>
> entry1 = gtk.GtkEntry()
> entry2 = gtk.GtkEntry()
> def transfer_focus(widget, other_widget):
> other_widget.grab_focus()
> entry1.connect('activate', transfer_focus, entry2)
Hi James,
But i am thinking of a situation where i dont know what the next widget is
(when connecting the signal).Consider extending GtkEntry/GnomeEntry. I want
to use it as any other widget. During packing of widgets we wont say what the
next widget is. Focus cycling will work with out that.
Is there any way one widget find out which widget comes next when a focus change
happens ?
Regards
Arun.
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk