thanks for the answer seth. i think i found a work around.

entry.connect("changed", self.callback, entry, type)

i don't know if it's the best way to do it, but at least it does the job. so 
right now i'm printing the dictionary (in the shell) with the callback. and it 
seem to change dictionary's value on real time as typed.
 


----- Original Message ----
From: Seth Mahoney <[EMAIL PROTECTED]>
To: Andrea Caminiti <[EMAIL PROTECTED]>
Cc: PyGtk Mail-List <pygtk@daa.com.au>
Sent: Tuesday, April 29, 2008 2:39:51 PM
Subject: Re: [pygtk] gtk.Entry confusion

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] = 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] = entries.get_text()

--Seth


On Tue, Apr 29, 2008 at 12:03 PM, Andrea Caminiti <[EMAIL PROTECTED]> 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=Ahu06i62sR8HDtDypao8Wcj9tAcJ

_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


      
____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to