开发者

pygtk - update a gtk.liststore adds blank line

I'm having issue with adding extra lines to gtk.liststore. below is a snipped of the code. The glade definition can be found here. When I add a row the row seperators appear but where text should appear i keeps empty... please help define everything with glade interface designer.

class GTKInterface(gobject.GObject):
 __gsignals__ = {

 }
 def __init__(self):
  gobject.GObject.__init__(self)
  self.gladefile = 'glade/mainwindow.glade'
  self.builder = gtk.Builder()
  self.builder.add_from_file(self.gladefile)
  self.treeview = self.builder.get_object('treeview1')
  self.liststore = self.builder.get_object('liststore')

def add_row(self, episodes):
  for ep in episodes:
   self.liststore.append(["test","test1", "test2"])

W开发者_运维知识库hat did I miss or how can this be solved?

Kind Regards,


I have found what I have forgot cell renders !!! I read about here

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜