Mercurial > cpython-lru_cache-weakref
diff Lib/stdwin/CSplit.py @ 346:4817ae40a4e2 legacy-trunk
minsize --> getminsize
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 16 Aug 1991 13:05:37 +0000 |
| parents | a8d033c6fb54 |
| children | 8331076cfe15 |
line wrap: on
line diff
--- a/Lib/stdwin/CSplit.py Fri Aug 16 13:04:40 1991 +0000 +++ b/Lib/stdwin/CSplit.py Fri Aug 16 13:05:37 1991 +0000 @@ -9,14 +9,13 @@ class CSplit() = Split(): # - def minsize(self, m): + def getminsize(self, (m, (width, height))): # Since things look best if the children are spaced evenly # along the circle (and often all children have the same # size anyway) we compute the max child size and assume # this is each child's size. - width, height = 0, 0 for child in self.children: - wi, he = child.minsize(m) + wi, he = child.getminsize(m, (0, 0)) width = max(width, wi) height = max(height, he) # In approximation, the diameter of the circle we need is
