<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">thanks for the answer seth. i think i found a work around.<br><br>entry.connect("changed", self.callback, entry, type)<br><br>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.<br> <br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Seth Mahoney <seth.r.mahoney@gmail.com><br>To: Andrea Caminiti <a.caminiti@yahoo.com><br>Cc: PyGtk Mail-List <pygtk@daa.com.au><br>Sent: Tuesday, April 29, 2008 2:39:51 PM<br>Subject: Re: [pygtk] gtk.Entry confusion<br><br>
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:<br><br>for entries in entry_set:<br>
dict[key] = entries.get_text()<br><br>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:<br><br>for entries in entry_dict.keys():<br>
entry_dict[entries] = entries.get_text()<br><br>--Seth<br><br><div class="gmail_quote">On Tue, Apr 29, 2008 at 12:03 PM, Andrea Caminiti <<a rel="nofollow" ymailto="mailto:a.caminiti@yahoo.com" target="_blank" href="mailto:a.caminiti@yahoo.com">a.caminiti@yahoo.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hi:<br><br>
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?<br><br>
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?<br><br>
thanks for your help and support.<br><br>
andrea caminiti<br><br><br><br>
____________________________________________________________________________________<br>
Be a better friend, newshound, and<br>
know-it-all with Yahoo! Mobile. Try it now. <a rel="nofollow" target="_blank" href="http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ">http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ</a><br><br>
_______________________________________________<br>
pygtk mailing list <a rel="nofollow" ymailto="mailto:pygtk@daa.com.au" target="_blank" href="mailto:pygtk@daa.com.au">pygtk@daa.com.au</a><br><a rel="nofollow" target="_blank" href="http://www.daa.com.au/mailman/listinfo/pygtk">http://www.daa.com.au/mailman/listinfo/pygtk</a><br>
Read the PyGTK FAQ: <a rel="nofollow" target="_blank" href="http://www.async.com.br/faq/pygtk/">http://www.async.com.br/faq/pygtk/</a><br><br></blockquote></div><br></div></div></div><br>
<hr size=1>Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. <a href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ "> Try it now.</a></body></html>