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,

Volker
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to