I would not use glade for liststores/treestores/comboboxes, it's much
simpler to write the code yourself as you can read from:

http://www.pygtk.org/pygtk2tutorial/sec-ComboBoxAndComboboxEntry.html

then if you want you can add the treeview to a scrolledwindow of the glade
interface but from pygtk code



On Wed, Jan 26, 2011 at 3:56 AM, Adam Tauno Williams <awill...@whitemice.org
> wrote:

> Please forgive this question if the answer is obvious but I've searched
> and not had any luck.  Also, having done this frequently in C#/.NET I
> could just be fuzzing over the obvious answer.
>
> I am building a PyGTK app using Glade-3 / Gtk.Builder.  And I'm stumped
> as to how ListStore models and ComboBoxes can be easily correlated.  In
> Glade-3 I don't seem to be able to pick a column type for a ListStore
> that is compatable with "str" or GObject.TYPE_STRING - so I can't enter
> data into the model in Glade.
>
> What I want is to simply create some combo boxes that contain a value &
> descripton, but only display the description, so I can retrieve the
> selected value.
>
> Does anyone have a current HOWTO / FAQ link addressing this issue?  Any
> tips would be appreciated.
>
> _______________________________________________
> pygtk mailing list   pygtk@daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>
_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to