]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
minsize --> getminsize
authorGuido van Rossum <guido@python.org>
Fri, 16 Aug 1991 13:05:37 +0000 (13:05 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 16 Aug 1991 13:05:37 +0000 (13:05 +0000)
Lib/lib-stdwin/CSplit.py
Lib/stdwin/CSplit.py

index 03559c1cbfdba77cd1b72d5250189e22758ad524..a9d3556533e3e9007d1d80876deb48db87565d77 100644 (file)
@@ -9,14 +9,13 @@ from Split import Split
 
 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
index 03559c1cbfdba77cd1b72d5250189e22758ad524..a9d3556533e3e9007d1d80876deb48db87565d77 100755 (executable)
@@ -9,14 +9,13 @@ from Split import Split
 
 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