Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/graphics/grid.py
diff options
context:
space:
mode:
authorJustin Gallardo <jirwin@suzy.(none)>2006-12-04 19:12:24 (GMT)
committer Justin Gallardo <jirwin@suzy.(none)>2006-12-04 19:12:24 (GMT)
commitb9f9ef0fe9e36cf6e5de59700154b16f2dae15cd (patch)
tree3d5403ec73e993a78c5e92f8b14a5b86e8b6ae60 /sugar/graphics/grid.py
parentf5ae0662482de14f9d3812ddc4aba9be61024887 (diff)
Changed all tabs to 4 spaces for python style
Diffstat (limited to 'sugar/graphics/grid.py')
-rw-r--r--sugar/graphics/grid.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/sugar/graphics/grid.py b/sugar/graphics/grid.py
index 350b4ec..cfbdf67 100644
--- a/sugar/graphics/grid.py
+++ b/sugar/graphics/grid.py
@@ -21,19 +21,19 @@ COLS = 16
ROWS = 12
class Grid(object):
- def __init__(self):
- self._factor = gtk.gdk.screen_width() / COLS
+ def __init__(self):
+ self._factor = gtk.gdk.screen_width() / COLS
- def point(self, grid_x, grid_y):
- return [grid_x * self._factor, grid_y * self._factor]
+ def point(self, grid_x, grid_y):
+ return [grid_x * self._factor, grid_y * self._factor]
- def rectangle(self, grid_x, grid_y, grid_w, grid_h):
- return [grid_x * self._factor, grid_y * self._factor,
- grid_w * self._factor, grid_h * self._factor]
+ def rectangle(self, grid_x, grid_y, grid_w, grid_h):
+ return [grid_x * self._factor, grid_y * self._factor,
+ grid_w * self._factor, grid_h * self._factor]
- def dimension(self, grid_dimension):
- return grid_dimension * self._factor
+ def dimension(self, grid_dimension):
+ return grid_dimension * self._factor
- def fit_point(self, x, y):
- return [int(x / self._factor), int(y / self._factor)]
-
+ def fit_point(self, x, y):
+ return [int(x / self._factor), int(y / self._factor)]
+