tuikit/layouts/fixed.py
changeset 115 b4ff7392003a
parent 114 26c02bd94bd9
child 116 165b5d65e1cb
equal deleted inserted replaced
114:26c02bd94bd9 115:b4ff7392003a
     1 from .layout import Layout
     1 from .layout import Layout
     2 
     2 
     3 
     3 
     4 class FixedLayout(Layout):
     4 class FixedLayout(Layout):
     5 
     5 
     6     def update(self):
     6     def update(self, _w, _h):
     7         for widget in self._managed_widgets:
     7         for widget in self._managed_widgets:
     8             widget.resize(*widget.sizereq)
     8             widget.resize(*widget.sizereq)
     9             widget.pos.update(*widget.posreq)
     9             widget.pos.update(*widget.posreq)