Christian,

Thanks, I had a feeling you'd know. But you're answering my questions so quickly now, I'm beginning to think you're not human, but an AI Robot who lurks on this list.

Rick

On Tuesday, February 17, 2004, at 11:24 AM, Christian Robottom Reis wrote:

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


Rick Muller
[EMAIL PROTECTED]


_______________________________________________ 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