]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Actualized.
authorGuido van Rossum <guido@python.org>
Mon, 14 Dec 1992 16:38:06 +0000 (16:38 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 14 Dec 1992 16:38:06 +0000 (16:38 +0000)
Do import stdwingl

Demo/sgi/gl/glstdwin/tcolor.py

index cf96158187e597694d61d3e926caa432534182f9..d1c49e115d7e3ac16e83bca9056586ad516fb050 100644 (file)
@@ -1,6 +1,6 @@
 # Try colors -- display all 256 possible colors, with their color index
 
-import stdwingl
+import stdwingl
 
 import stdwin
 from stdwinevents import *
@@ -30,9 +30,9 @@ def main():
                                        p = col*width/NCOLS, row*height/NROWS
                                        q = (col+1)*width/NCOLS, \
                                                (row+1)*height/NROWS
-                                       d.paint(p, q)
+                                       d.paint((p, q))
                                        d.setfgcolor(0)
-                                       d.box(p, q)
+                                       d.box((p, q))
                                        d.text(p, `color`)
                                        p = p[0] , p[1]+ d.lineheight()
                                        d.setfgcolor(7)