Re: EuGTK - setRow
- Posted by irv Sep 22, 2010
- 1315 views
So the color is computed, and must follow the item - as in, you'd always want the red and the 364.3% to be wherever in the list Water might be (even when sorted differently).
So the color "red" isn't attached to the Water item, but needs to be selected based on the current percentage for that item.
The above program I posted shows how to do that. (Except you'll probably want to change the order of the colors, if not the colors themselves) I've got the lowest in red, the highest in darker colors of green. As you can see, it would be easy to have only 2 or 3 colors - "too low", "ok", and "too high", perhaps.