Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2008-04-26 18:16:49 (GMT)
committer Simon Schampijer <simon@schampijer.de>2008-04-26 18:16:49 (GMT)
commit6efdf259b62d7af47b1e06601eaee17b74dbeb58 (patch)
tree275f972255500f5d6a39f75baeaa006879c71f71
parenta13ef2209b50e50e71d8bf97966c31e5bfb4dc1d (diff)
Make the colors of xocolors public
-rw-r--r--sugar/graphics/xocolor.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/sugar/graphics/xocolor.py b/sugar/graphics/xocolor.py
index b2da8e9..d5e906f 100644
--- a/sugar/graphics/xocolor.py
+++ b/sugar/graphics/xocolor.py
@@ -17,7 +17,7 @@
import random
-_colors = [
+colors = [
['#B20008', '#FF2B34'], \
['#FF2B34', '#B20008'], \
['#E6000A', '#FF2B34'], \
@@ -218,8 +218,8 @@ def is_valid(color_string):
class XoColor:
def __init__(self, color_string=None):
if color_string == None or not is_valid(color_string):
- n = int(random.random() * (len(_colors) - 1))
- [self.stroke, self.fill] = _colors[n]
+ n = int(random.random() * (len(colors) - 1))
+ [self.stroke, self.fill] = colors[n]
else:
[self.stroke, self.fill] = _parse_string(color_string)
@@ -244,7 +244,7 @@ if __name__ == "__main__":
f = open(sys.argv[1], 'r')
- print '_colors = ['
+ print 'colors = ['
for line in f.readlines():
match = re.match(r'fill: ([A-Z0-9]*) stroke: ([A-Z0-9]*)', line)