Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ffd7fa3

Browse files
committed
Actualized.
Do import stdwingl
1 parent 2219afc commit ffd7fa3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Demo/sgi/gl/glstdwin/tcolor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Try colors -- display all 256 possible colors, with their color index
22

3-
# import stdwingl
3+
import stdwingl
44

55
import stdwin
66
from stdwinevents import *
@@ -30,9 +30,9 @@ def main():
3030
p = col*width/NCOLS, row*height/NROWS
3131
q = (col+1)*width/NCOLS, \
3232
(row+1)*height/NROWS
33-
d.paint(p, q)
33+
d.paint((p, q))
3434
d.setfgcolor(0)
35-
d.box(p, q)
35+
d.box((p, q))
3636
d.text(p, `color`)
3737
p = p[0] , p[1]+ d.lineheight()
3838
d.setfgcolor(7)

0 commit comments

Comments
 (0)