diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2008-04-18 23:10:48 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2008-04-18 23:10:48 (GMT) |
commit | 283b20114576b1e29d856911d188ce3c73865012 (patch) | |
tree | 3f3fbe63475506ae340590f2564dd9d4085b6dc7 /sugar/graphics/xocolor.py | |
parent | 8783d1113d945b25d5deedae574be52dcf4d34e5 (diff) |
pylint most of sugar.graphics, only palette left
Diffstat (limited to 'sugar/graphics/xocolor.py')
-rw-r--r-- | sugar/graphics/xocolor.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sugar/graphics/xocolor.py b/sugar/graphics/xocolor.py index d37eab1..b2da8e9 100644 --- a/sugar/graphics/xocolor.py +++ b/sugar/graphics/xocolor.py @@ -219,24 +219,24 @@ 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] + [self.stroke, self.fill] = _colors[n] else: - [self._stroke, self._fill] = _parse_string(color_string) + [self.stroke, self.fill] = _parse_string(color_string) def __cmp__(self, other): if isinstance(other, XoColor): - if self._stroke == other._stroke and self._fill == other._fill: + if self.stroke == other.stroke and self.fill == other.fill: return 0 return -1 def get_stroke_color(self): - return self._stroke + return self.stroke def get_fill_color(self): - return self._fill + return self.fill def to_string(self): - return '%s,%s' % (self._stroke, self._fill) + return '%s,%s' % (self.stroke, self.fill) if __name__ == "__main__": import sys |