On Sunday 22 December 2002 17:55, mc collilieux wrote: > Hello, I learn for python and pygtk : > i have a "form" with many GtkEntry to type data for a mysql base > and I want the first entry has the cursor inside at the opening of the > windows... More when i valide (with Enter) the data, the cursor goes to > the second entry. > > I test Focus and grab and nothin do that i want > the flag HAS_FOCUS do it is impossible to type anything in the entry ? > > pygtk 0.69 et python 1.5.2 > > And sorry for my english :-( > > -- > Marie-Claude Collilieux
Pressing the TAB key will move the focus to the next entry in the GUI. If you really want to use ENTER, I believe you'll have to set up a signal handler for the activate button and inside it, call next_widget.grab_focus() where next_widget is the widget you want to get the focus when enter is pressed in this widget. HTH, Dave _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
