diff options
author | Aneesh Dogra <lionaneesh@gmail.com> | 2012-12-20 21:10:43 (GMT) |
---|---|---|
committer | Aneesh Dogra <lionaneesh@gmail.com> | 2012-12-20 21:10:43 (GMT) |
commit | d0066cc2d5cfd06012cc9bf4eda1d9788ac8d6fe (patch) | |
tree | 5bf3015702ba9d9c93b71d1dc45cf4917d139bb5 | |
parent | 997a2d1b221a5a96d3282fd5299c8a4757db7e4d (diff) |
Remove unused colors.
-rwxr-xr-x | ConstellationsFlashCards.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ConstellationsFlashCards.py b/ConstellationsFlashCards.py index 4c3d78c..7fbbc31 100755 --- a/ConstellationsFlashCards.py +++ b/ConstellationsFlashCards.py @@ -218,9 +218,7 @@ class ChartDisplay(Gtk.DrawingArea): if (len(self.colors) == 0): self.colors[0] = '#FFFFFF' self.colors[1] = '#000000' - self.colors[2] = '#FF0000' - self.colors[3] = '#C0C0C0' - self.colors[4] = '#00FF00' + self.colors[2] = '#C0C0C0' self.canplot = True self.plotchart(True) else: @@ -650,7 +648,7 @@ class ChartDisplay(Gtk.DrawingArea): # Clear the drawing surface - color_rgb = Color(self.colors[3]).get_rgba()[:-1] # we don't need alpha + color_rgb = Color(self.colors[2]).get_rgba()[:-1] # we don't need alpha self.ctx.set_source_rgb(*color_rgb) self.ctx.rectangle(self.xoffset + self.margin - 2, self.yoffset + self.margin - 2, |