[pygtk] determining the number of columns of a liststore at
runtime
euoar
euoar at yahoo.es
Fri Oct 27 20:06:32 WST 2006
euoar escribió:
> Is that possible? I have tried something like this:
>
> def ncolumns():
> code
> return string
>
> example that code returns: "str, str, str"
>
> then: gtk.ListStore( ncolumns() ). But it throws: "could not get
> typecode from object"
>
>
>
>
> ______________________________________________ LLama Gratis a
> cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por
> minuto. http://es.voice.yahoo.com
> _______________________________________________
> pygtk mailing list pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
>
I think I have the solution (I'm answering myself to avoid people to
waste time thinking in my question):
args = [str, str, str]
gtk.ListStore(*args)
______________________________________________
LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com
More information about the pygtk
mailing list