summaryrefslogtreecommitdiff
path: root/Demo/sgi/gl
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-12-14 16:38:06 +0000
committerGuido van Rossum <guido@python.org>1992-12-14 16:38:06 +0000
commit3361e3a6727b08fe9491e0a5c2a5d3b65c90f734 (patch)
tree92fe50f398aae1897db1e763059663e261d0490f /Demo/sgi/gl
parent18667dff698036482a480480db066c267cabb8f7 (diff)
downloadcpython-3361e3a6727b08fe9491e0a5c2a5d3b65c90f734.tar.gz
Actualized.
Do import stdwingl
Diffstat (limited to 'Demo/sgi/gl')
-rw-r--r--Demo/sgi/gl/glstdwin/tcolor.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Demo/sgi/gl/glstdwin/tcolor.py b/Demo/sgi/gl/glstdwin/tcolor.py
index cf96158187..d1c49e115d 100644
--- a/Demo/sgi/gl/glstdwin/tcolor.py
+++ b/Demo/sgi/gl/glstdwin/tcolor.py
@@ -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)