[pygtk] problems with styles
David N. Welton
davidw@linuxcare.com
11 Jul 2000 21:27:44 +0200
Torsten Landschoff <torsten@debian.org> 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
davidw@linuxcare.com, http://www.linuxcare.com/
Linuxcare. Support for the revolution.