[pygtk] Re: Re: Focus ?

2002-12-25 Thread Dave Reed
On Tuesday 24 December 2002 10:54, mc collilieux wrote:
> Le Mon, 23 Dec 2002 09:17:51 -0500
> Dave Reed <[EMAIL PROTECTED]> écrivait : 
> 
> > 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... 
> 
> > 
> > 
> > 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
> > 
> Thanks for the reponse
> Yes, i can use TAB instead of ENTER for the next entry, it is good 
also.
> But, for the first entry, how have the cursor automatically in at the
> opening of the window ? Why first_widget.grab_focus() don't do this ?


I'm not certain what you're saying you tried. If you have a method
that is called to show the window, calling .grab_focus() on the widget
you want to have the focus should work.

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/



[pygtk] debian packages

2002-12-25 Thread Arjan J. Molenaar
Hi,

Has anybody created Debian packages for gnome-python on Woody (3.0).

Regards,

Arjan


___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/



Re: [pygtk] Re: Focus ?

2002-12-25 Thread mc collilieux
Le Mon, 23 Dec 2002 09:17:51 -0500
Dave Reed <[EMAIL PROTECTED]> écrivait : 

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

> 
> 
> 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
> 
Thanks for the reponse
Yes, i can use TAB instead of ENTER for the next entry, it is good also.
But, for the first entry, how have the cursor automatically in at the
opening of the window ? Why first_widget.grab_focus() don't do this ?

-- 
Marie-Claude Collilieux
Bretagne 
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/