Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/graphics
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2007-02-26 03:23:27 (GMT)
committer Dan Williams <dcbw@redhat.com>2007-02-26 03:23:27 (GMT)
commitc1efa0a2669c71b3eb74927378e56e2d83ee398d (patch)
treeb09a88a252556b04b7f833327874b3f74125a3cf /sugar/graphics
parenta48fe93cc3c16d8ceeac3db7ce06e6266ae8083b (diff)
Ensure correctly formatted color
Diffstat (limited to 'sugar/graphics')
-rw-r--r--sugar/graphics/color.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sugar/graphics/color.py b/sugar/graphics/color.py
index 32d248c..864e8e3 100644
--- a/sugar/graphics/color.py
+++ b/sugar/graphics/color.py
@@ -62,7 +62,7 @@ class RGBColor(object):
int(self._b * 65535))
def get_html(self):
- return '#%x%x%x' % (self._r * 255, self._g * 255, self._b * 255)
+ return '#%02x%02x%02x' % (self._r * 255, self._g * 255, self._b * 255)
class HTMLColor(RGBColor):
def __init__(self, html_color):