mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Actualized.
Do import stdwingl
This commit is contained in:
parent
2219afcdfa
commit
ffd7fa3634
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue