Using pygtk and glade2
P at draigBrady.com
P at draigBrady.com
Thu May 20 08:03:58 EDT 2004
j_mckitrick wrote:
> I am having a problem with combo boxes. If I am using an XML glade2
> file for my gui definition, what is the command I need to use to
> access a given combo box and determine the currently selected item?
>
> jonathon
That's easy: text = combo.entry.get_text()
More info here:
http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq14.008.htp
Getting the selected item in an option menu is much more difficult:
http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq16.004.htp
Examples are always good:
http://www.pixelbeat.org/talks/pygtk/
Pádraig.
More information about the Python-list
mailing list