On Tue, Feb 17, 2004 at 11:20:50AM -0700, Rick Muller wrote: > >>> from gtk import Combo > >>> c = Combo() > >>> c.set_popdown_strings(['a','b','c']) > > Then, later in the code, I'd like to select one of these values (say > 'b') and have the widget reflect this choice. I normally get the > current value of the widget via: > > >>> val = c.get_children()[0].get_text() > > but I don't know how to actually set one of the values. Can anyone help > me?
You can either get hold of the item and .activate() it, or you can get its text and set_text() it to the combo's entry. Take care, -- Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331 _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
