from math import * from kandinsky import * fr = fill_rect tx = draw_string def grille(num=True): for i in range(8): for j in range(8): fr(20+19*j,20+19*i,18,18,(196,196,196)) if num : tx(chr(j+65),24+19*j,2) if num : tx(str(i),5,20+19*i)
Create, edit, and import your Python scripts
from math import * from kandinsky import * fr = fill_rect tx = draw_string def grille(num=True): for i in range(8): for j in range(8): fr(20+19*j,20+19*i,18,18,(196,196,196)) if num : tx(chr(j+65),24+19*j,2) if num : tx(str(i),5,20+19*i)