[pygtk] Glade and GtkComboBox

Jeremy S dumbmatter at gmail.com
Tue Jul 15 10:11:09 WST 2008


I've noticed that problem too.  I haven't found any better way to do
it then just using a liststore and doing it the verbose way, which is
really just a few more lines of code.

On Mon, Jul 14, 2008 at 5:38 AM, Frédéric
<frederic.mantegazza at gbiloba.org> wrote:
> I found this old post, without answer:
>
>> Hello everyone, I'm new to DaniWeb and a sort of beginner at Python. I've
>> created a GUI in Python using Glade and GTK and I have two questions. I'm
>> having trouble with comboboxes. Particularly with entering data into a
>> combo box from Python. I've tried the following....
>>
>> myCombo = self.wTree.get_widget('comboboxentry')
>> myCombo.append_text('blah blah blah')
>>
>> to no avail... apparently you have to first do gtk.combo_box_new_text()
>> before you can append text. Is this possible when using Glade to
>> construct my GUI?
>
> Does anybody have a solution to that problem?
>
> Thanks,
>
> --
>    Frédéric
>
>    http://www.gbiloba.org
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
>


More information about the pygtk mailing list