[pygtk] Glade 3 / Builder / Combobox
Timo
timomlists at gmail.com
Wed Feb 16 01:33:19 WST 2011
On 26-01-11 12:20, Adam Tauno Williams wrote:
> 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.
Looks like a Glade bug, as it has nothing to do with programming in
PyGTK. You should report a bug on the Glade bugtracker. Maybe try the
latest development snaphot (3.7.3 I believe) or build it from GIT to see
if this problem still occurs.
Cheers,
Timo
>
> _______________________________________________
> pygtk mailing list pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
More information about the pygtk
mailing list