[Glade-users] gtkbuilder and glade - gobjects / pygtk objects



On Mon, Jun 22, 2009 at 5:35 PM, Mats
Taraldsvik<mats.taraldsvik at bickeringleague.net> wrote:

self.showsStore = self.builder.get_object("showsStore")

for Show in self.database.database :
? ? self.showsStore.append([ Show.name, Show.backend , Show ])


Sorry, a copy-paste error :). Should be :

showsStore = self.builder.get_object("showsStore")

for Show in database :
? ?showsStore.append([ Show.name, Show ])


I think you may need to use a special cast to get the GObject
of a... what is it... python class ?

Not sure though, the liststore append function doesnt seem to make
sense to me either, seems like your aiming at a convenience api
that creates the GtkTreeIter, appends it, and sets all the columns
of that iter all in one go, are you sure you have the correct api
for that also ? (remember I wouldnt know, I can only guess at
what the api might be in python).

Cheers,
        -Tristan




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]