[pygtk] determining the number of columns of a liststore at runtime

euoar euoar at yahoo.es
Fri Oct 27 19:57:58 WST 2006

Is that possible? I have tried something like this:

def ncolumns():
    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. 

More information about the pygtk mailing list