2007/1/12, Volker Helm <[EMAIL PROTECTED]>:
Hi, I'm trying to implement programm based on a database. Since there are a lot of columns in a database I'd like to generate a gtk.ListStore model dynamicly. normally, I'd do something like this: import pygtk ... win = gtk.Window() listmodel = gtk.ListStore(str,str,str,int,str) tv = gtk.TreeView(listmodel) ... I'd prefer: import gtk ... win = gtk.Window() listmodel = gtk.Liststore(str) # now append some column to the model # go on tv = gtk.Treeview(listmodel) Does anybody has an idea, how to solve this problem without using completly the generic model? Thanks in advance,
Sorry, but I don't get what the question is. Volker
-- Un saludo, Alberto Ruiz
_______________________________________________ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/