Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/chat/roundbox.py
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@sugarlabs.org>2012-01-09 13:17:10 (GMT)
committer Aleksey Lim <alsroot@sugarlabs.org>2012-01-09 13:17:10 (GMT)
commit148d0d6fd47d8eb6b3bf42d21828222ee4693082 (patch)
treeb6475a0d0b0ba2bdc8705e6c0e5d977df9dd412a /chat/roundbox.py
parenta26e85289000903cf1d8dd98c4d26fc9fe529ee3 (diff)
Lint fixes
Diffstat (limited to 'chat/roundbox.py')
-rw-r--r--chat/roundbox.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/chat/roundbox.py b/chat/roundbox.py
index 71298dd..35d5f7c 100644
--- a/chat/roundbox.py
+++ b/chat/roundbox.py
@@ -11,6 +11,10 @@ class RoundBox(gtk.HBox):
def __init__(self, **kwargs):
gtk.HBox.__init__(self, **kwargs)
+ self._x = None
+ self._y = None
+ self._width = None
+ self._height = None
self._radius = style.zoom(10)
self.border = self._BORDER_DEFAULT
self.border_color = style.COLOR_BLACK
@@ -58,12 +62,12 @@ class RoundBox(gtk.HBox):
cr.close_path()
if self.background_color is not None:
- r, g, b, a = self.background_color.get_rgba()
+ r, g, b, __ = self.background_color.get_rgba()
cr.set_source_rgb(r, g, b)
cr.fill_preserve()
if self.border_color is not None:
- r, g, b, a = self.border_color.get_rgba()
+ r, g, b, __ = self.border_color.get_rgba()
cr.set_source_rgb(r, g, b)
cr.set_line_width(self.border)
cr.stroke()