Torsten Landschoff <[EMAIL PROTECTED]> writes:
if isinstance(task, SubTask):
style = self.clist.get_style().copy()
style.base[STATE_NORMAL] = self.clist.get_colormap().alloc('springgreen')
style.bg[STATE_SELECTED] = self.clist.get_colormap().alloc('seagreen')
elif isinstance(task, Task):
style = self.clist.get_style().copy()
style.base[STATE_NORMAL] =
self.clist.get_colormap().alloc('lightsteelblue')
style.bg[STATE_SELECTED] = self.clist.get_colormap().alloc('steelblue')
self.clist.append(task.printables())
self.clist.set_row_style(len(self.task_order) - 1, style)
self.clist.show()
This seems to work.
Thanks!
--
David N. Welton, Responsabile Progetti Open Source, Linuxcare Italia spa
tel +39.049.8043411 fax +39.049.8043412 cel +39.348.2879508
[EMAIL PROTECTED], http://www.linuxcare.com/
Linuxcare. Support for the revolution.
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk