diff options
author | Sascha Silbe <sascha-pgp@silbe.org> | 2010-10-15 18:23:34 (GMT) |
---|---|---|
committer | Sascha Silbe <sascha-pgp@silbe.org> | 2010-11-23 16:14:33 (GMT) |
commit | 60707443eaf4300352f9e227f91ea2f79ad7aeaf (patch) | |
tree | d892eaf1905b909aadc74964a99900c6ac3cb57c /src/sugar/graphics | |
parent | 814ab2ddf9337c36244929840c296b26430eb045 (diff) |
PEP8 cleanup: fix whitespace around operator
Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
Diffstat (limited to 'src/sugar/graphics')
-rw-r--r-- | src/sugar/graphics/alert.py | 2 | ||||
-rw-r--r-- | src/sugar/graphics/palettewindow.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/sugar/graphics/alert.py b/src/sugar/graphics/alert.py index 0202a66..f032871 100644 --- a/src/sugar/graphics/alert.py +++ b/src/sugar/graphics/alert.py @@ -357,7 +357,7 @@ class _TimeoutIcon(hippo.CanvasText, hippo.CanvasItem): radius = min(width * 0.5, height * 0.5) hippo.cairo_set_source_rgba32(cr, self.props.background_color) - cr.arc(xval, yval, radius, 0, 2*math.pi) + cr.arc(xval, yval, radius, 0, 2 * math.pi) cr.fill_preserve() diff --git a/src/sugar/graphics/palettewindow.py b/src/sugar/graphics/palettewindow.py index e76e952..0250f4a 100644 --- a/src/sugar/graphics/palettewindow.py +++ b/src/sugar/graphics/palettewindow.py @@ -110,8 +110,8 @@ class MouseSpeedDetector(gobject.GObject): (x, y) = self._get_mouse_position() self._mouse_pos = (x, y) - dist2 = (oldx - x)**2 + (oldy - y)**2 - if dist2 > self._threshold**2: + dist2 = (oldx - x) ** 2 + (oldy - y) ** 2 + if dist2 > self._threshold ** 2: return True else: return False |