[pygtk] ComboBoxEntry set_text

Timo timomlists at gmail.com
Wed Jun 2 16:20:45 WST 2010


On 02-06-10 05:35, Bradlee Landis wrote:
> Since a user can set a custom value to ComboBoxEntry, why can't I
> programatically set the text value, without it being in the list? It
> would make for less code, instead of searching, and adding an item if
> it's not there.
>
> Do I have access to the gtk.Entry directly?
>    

Try this:
comboboxentry.child.set_text('testing')

Cheers,
Timo



More information about the pygtk mailing list