[Glade-users] gtkbuilder and glade - gobjects / pygtk objects
- From: mats.taraldsvik at bickeringleague.net (Mats Taraldsvik)
- Subject: [Glade-users] gtkbuilder and glade - gobjects / pygtk objects
- Date: Mon, 22 Jun 2009 23:01:04 +0200
Hi,
I am trying to move an app from using libglade to the new gtkbuilder.
However, when creating a TreeView and ListStore, I don't know how to
handle an object ( as in a class object ) that should be invisible in
the treeview.
With libglade I did this:
self.previewStore = gtk.ListStore( str, object )
self.previewView = self.wTree.get_widget("previewTree")
self.previewView.set_model(self.previewStore)
render=gtk.CellRendererText()
col=gtk.TreeViewColumn("Original Name",render,text=0)
col.set_resizable(True)
self.previewView.append_column(col)
col=gtk.TreeViewColumn()
col.set_visible(False)
self.previewView.append_column(col)
self.previewView.show()
However, with gtkbuilder, I get a "TypeError: value is of wrong type for
this column"
when trying to add items. Works just fine if I remove the data/object
column.
Regards,
Mats Taraldsvik
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]