Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2219afc commit ffd7fa3Copy full SHA for ffd7fa3
1 file changed
Demo/sgi/gl/glstdwin/tcolor.py
@@ -1,6 +1,6 @@
1
# Try colors -- display all 256 possible colors, with their color index
2
3
-# import stdwingl
+import stdwingl
4
5
import stdwin
6
from stdwinevents import *
@@ -30,9 +30,9 @@ def main():
30
p = col*width/NCOLS, row*height/NROWS
31
q = (col+1)*width/NCOLS, \
32
(row+1)*height/NROWS
33
- d.paint(p, q)
+ d.paint((p, q))
34
d.setfgcolor(0)
35
- d.box(p, q)
+ d.box((p, q))
36
d.text(p, `color`)
37
p = p[0] , p[1]+ d.lineheight()
38
d.setfgcolor(7)
0 commit comments