[pygtk] Listtore

Johan Dahlin jdahlin at async.com.br
Tue Feb 21 00:39:07 WST 2006


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?

gtk.ListStore([str] * x)

-- 
Johan Dahlin <jdahlin at async.com.br>
Async Open Source


More information about the pygtk mailing list