tuikit/layouts/fixed.py
author Radek Brich <radek.brich@devl.cz>
Sun, 15 Feb 2015 12:52:46 +0100
changeset 115 b4ff7392003a
parent 114 26c02bd94bd9
child 116 165b5d65e1cb
permissions -rw-r--r--
GridLayout: basic implementation.

from .layout import Layout


class FixedLayout(Layout):

    def update(self, _w, _h):
        for widget in self._managed_widgets:
            widget.resize(*widget.sizereq)
            widget.pos.update(*widget.posreq)