[pygtk] Listtore

Leeuw van der, Tim tim.leeuwvander at nl.unisys.com
Tue Feb 21 00:53:29 WST 2006


I believe that actually it should be:

 

gtk.ListStore(*[str] * x)

 

With an extra '*' in front of the argument-list; otherwise it's 1
argument to the ListStore constructor instead of an x number of
positional arguments.

 

Cheers,

 

--Tim

________________________________

From: pygtk-bounces at daa.com.au [mailto:pygtk-bounces at daa.com.au] On
Behalf Of Arie Timmerman
Sent: maandag 20 februari 2006 17:48
To: pygtk at daa.com.au
Subject: Re: [pygtk] Listtore

 

 

2006/2/20, Johan Dahlin <jdahlin at async.com.br>:

[..]
gtk.ListStore([str] * x)

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


It doesn't work actually: 
>>> store = gtk.ListStore([str]*4)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: could not get typecode from object

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20060220/0ed3f88a/attachment-0001.htm


More information about the pygtk mailing list