[pygtk] gtk.Entry confusion

Seth Mahoney seth.r.mahoney at gmail.com
Wed Apr 30 03:39:55 WST 2008


Are you saying you have a bunch of entries, and need to read the text of all
of them in response to an event?  If so, you could use a set of entries and
just iterate through them, like:

for entries in entry_set:
  dict[key] =3D entries.get_text()

Or you could try a dict of entries, iterate through the keys (which would be
the entries) and store the text in the values, something like:

for entries in entry_dict.keys():
  entry_dict[entries] =3D entries.get_text()

--Seth

On Tue, Apr 29, 2008 at 12:03 PM, Andrea Caminiti <a.caminiti at yahoo.com>
wrote:

> hi:
>
> i was trying to figure how to read text from the entry widget. but i need
> to read them all "at the same time" and store the value of each different
> entry in a dictionary. this action need to be performed or when the text =
is
> inserted or clicking on a button. any suggestions?
>
> i know that gtk.Entry has an "activate" signal, but it uses the "enter" as
> a signal. is there any way to modify the value of the signal to use?
>
> thanks for your help and support.
>
> andrea caminiti
>
>
>
>
>  ________________________________________________________________________=
____________
> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile.  Try it now.
> http://mobile.yahoo.com/;_ylt=3DAhu06i62sR8HDtDypao8Wcj9tAcJ
>
> _______________________________________________
> 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/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20080429/9e153df3/at=
tachment-0001.htm


More information about the pygtk mailing list