[pygtk] Glade 3 / Builder / Combobox

Adam Tauno Williams awilliam at whitemice.org
Wed Jan 26 19:21:00 WST 2011


On Wed, 2011-01-26 at 12:02 +0100, Timo wrote: 
> On 26-01-11 03:56, Adam Tauno Williams 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.
> Use gchararray for str, gint for int and gfloat for float.

That is what I had assumed.  But in that case the "Data:" editor doesn't
seem to work - the gint value remains but anything I enter into the
gchararray column disappears unless [seemingly randomly] the little
editor button at the end of the fields presents the edit window [but
that seems rare].  If I just enter a string into the column the text
disappears.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot.png
Type: image/png
Size: 150485 bytes
Desc: not available
URL: <http://www.daa.com.au/pipermail/pygtk/attachments/20110126/89407f74/attachment-0001.png>


More information about the pygtk mailing list