tuikit/layout.py
changeset 25 f69a1f0382ce
parent 19 5e78d52ebb24
child 34 e3beacd5e536
equal deleted inserted replaced
24:b248ef500557 25:f69a1f0382ce
   102         rown = 0
   102         rown = 0
   103         coln = 0
   103         coln = 0
   104         for child in self._getchildren():
   104         for child in self._getchildren():
   105             if coln == 0:
   105             if coln == 0:
   106                 row = []
   106                 row = []
   107                 for i in range(self.numcols):
   107                 for _i in range(self.numcols):
   108                     row.append({'widget': None, 'colspan': 0, 'rowspan': 0})
   108                     row.append({'widget': None, 'colspan': 0, 'rowspan': 0})
   109 
   109 
   110             colspan = 1
   110             colspan = 1
   111             if 'colspan' in child.hints:
   111             if 'colspan' in child.hints:
   112                 colspan = child.hints['colspan']
   112                 colspan = child.hints['colspan']