--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tuikit/layouts/grid.py Sun Feb 15 12:48:23 2015 +0100
@@ -0,0 +1,24 @@
+from .layout import Layout
+
+
+class GridLayout(Layout):
+
+ """Lay out widgets in a grid.
+
+ Grid size is determined by each widget's specified column and row.
+
+ """
+
+ def __init__(self):
+ Layout.__init__(self)
+
+ def add(self, widget, row, column):
+ Layout.add(self, widget)
+
+
+
+
+ def update(self):
+ for widget in self._managed_widgets:
+ widget.resize(*widget.sizereq)
+ widget.pos.update(*(widget.posreq + self.offset))