try something like::
-----------------------------------------
collection = []

something = ['hello','there',1,2]

for i in something:
    collection.append(type(i))

store = gtk.ListStore(*collection)
------------------------------------------



Arie Timmerman wrote:
How can i make a dynamic liststore. An example:
It could be this: gtk.ListStore(str,str,str,str)
But it also could be this: gtk.ListStore(str,str,str,str,str,str,str,str,str,str,str,str,str)

So i want to repeat "str" x times. How can i do this?

_______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

-- 


       O__
      _/`.\
          `=( '

_______________________________________________
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