]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
setsize has two arguments: width, height.
authorGuido van Rossum <guido@python.org>
Thu, 24 Dec 1992 11:37:21 +0000 (11:37 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 24 Dec 1992 11:37:21 +0000 (11:37 +0000)
Demo/sgi/video/VFile.py

index 3d2bd8ce81729c36d93f33cb8df2be2ee9735d94..daba6a088177eb8f3eba1554a0619783bfa57ef4 100755 (executable)
@@ -246,8 +246,8 @@ class VideoParams:
 
        # Set the frame width and height (e.g. from gl.getsize())
 
-       def setsize(self, size):
-               self.width, self.height = size
+       def setsize(self, width, height):
+               self.width, self.height = width, height
 
        # Retrieve the frame width and height (e.g. for gl.prefsize())
 
@@ -800,7 +800,7 @@ class BasicVinFile(VideoParams):
        def setinfo(self, values):
                raise CallError # Can't change info of input file!
 
-       def setsize(self, size):
+       def setsize(self, width, height):
                raise CallError # Can't change info of input file!
 
        def rewind(self):