Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/sugar/graphics/palettewindow.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/sugar/graphics/palettewindow.py')
-rw-r--r--src/sugar/graphics/palettewindow.py4
1 files changed, 2 insertions, 2 deletions
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