Some cleanups of the IconLayout

This commit is contained in:
Marco Pesenti Gritti
2006-09-24 22:55:13 +02:00
parent eac58dcfed
commit 3f73da0549
5 changed files with 20 additions and 25 deletions
+4
View File
@@ -31,6 +31,10 @@ class Grid:
return [grid_x, grid_y]
def convert_to_canvas(self, grid_x, grid_y):
scale = 1200 / Grid.COLS
return [grid_x * scale, grid_y * scale]
def set_constraints(self, component, x, y, width=-1, height=-1):
if isinstance(component, gtk.Window):
self._layout_window(component, x, y, width, height)