Nikos Kouremenos wrote:


but I couldn't understand [sorry I'm new in the GTK world] how to get the text from the selection that the user has finally done!


When I used glade I used something along the line of this:

text = self.wTree.get_widget('combo-entry1').get_text()

It's been a while but if I remember correctly after the user selects a valur from the drop down list it is automatically placed in the entry the is automatically created next to the combo box dropdown. If so just grab the text from it like above, if your using glade pull up your template and click on the entry widget and get it's name to use as the string passed to .get_widget(' '). I think combo-entry1 was the default when I did this. Hope that helps also take a look here for all the PyGTK goodness:

http://pygtk.org/pygtk2reference/gtk-class-reference.html

Note: wTree is just what I named my widget tree yours is probably different

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

Reply via email to