def _act_name_render_func(col, renderer, model, iter, user_data=None): name = model.get_value(iter, ActivityStore.TITLE_COL) finished = model.get_value(iter, ActivityStore.FINISHED_COL) if finished: name = '<span foreground="#32CD32"><s>%s</s></span>' % name renderer.set_property('markup', name)
def _interrupt_render_func(col, renderer, model, iter, user_data=None): interrupts = model.get_value(iter, ActivityStore.INTERRUPT_COL) renderer.set_property( 'markup', '<span foreground="#CD3232">%s</span>' % interrupts)
def _tomato_render_func(col, renderer, model, iter, user_data=None): tomatoes = model.get_value(iter, ActivityStore.TOMATO_COL) renderer.set_property( 'markup', '<span foreground="#32CD32">%s</span>' % tomatoes)
def _interrupt_render_func(col, renderer, model, iter, user_data=None): interrupts = model.get_value(iter, ActivityStore.INTERRUPT_COL) renderer.set_property('markup', '<span foreground="#CD3232">%s</span>' % interrupts)
def _tomato_render_func(col, renderer, model, iter, user_data=None): tomatoes = model.get_value(iter, ActivityStore.TOMATO_COL) renderer.set_property('markup', '<span foreground="#32CD32">%s</span>' % tomatoes)