On Sun, 2003-07-27 at 10:32, David M. Cook wrote: > Or you can use the weight attribute: > > import pango > ... > treedata = [[0, 'Mahler, Gustav', 1, '', 2, 1, 3, 0, 4, pango.WEIGHT_BOLD], > [0, '', 1, 'Symphony No 1', 2, 0, 3, 1, 4, pango.WEIGHT_NORMAL], > <..> > [0, '', 1, 'String Quartet No 5', 2, 0, 3, 1, 4, pango.WEIGHT_NORMAL]] > ... > column = gtk.TreeViewColumn(column_titles[i], cell, text=i, > editable=ncols+i, visible=ncols+i, > weight=ncols+2) >
The markup example worked nicely, but the pango example doesn't work. It seems that the init_store() function is expecting the last field of the row to be a parent flag, which is no longer true. However, even when setting the line from "if row[-1]==0" to "if row[-3]==0", it still complains that the column number is out of range. Any idea why? -- Colin Fox <[EMAIL PROTECTED]> CF Consulting Inc.
signature.asc
Description: This is a digitally signed message part
_______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
