On Sun, 2003-07-27 at 17:27, Colin Fox wrote: > On Sun, 2003-07-27 at 10:32, David M. Cook wrote: > <...> > 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?
Ok, now I know.
There are two more changes that have to be made to use the Pango
solution (which I prefer, since it seems more programmatically friendly
to set an attribute than it does to put markup around a string).
First, the 'if' must be changed to 'if row[-3]==0'.
Secondly, the column definition line now needs to read:
COLUMN_TYPES = [gobject.TYPE_STRING]*2 + [gobject.TYPE_BOOLEAN]*2 + \
[gobject.TYPE_INT]
cf
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/
