I need the function to display a set of eyes, so if i call the function
Eyes(3,4) a graphics window opens with exact dimesions for 4 coloumns and 2 rows of eyes...
from graphics import *
def drawCircle(win, centre, radius, colour):
circle = Circle(centre, radius)
circle.setFill(colour)
circle.setWidth(2)
circle.draw(win)
def drawEye():
w = 250
h = 250
win = GraphWin(" Eye", w, h)
# center should be at 1/2 width and height
centre = Point(w//2, h//2)
drawCircle(win, centre, 40, "white")
drawCircle(win, centre, 20, "blue")
drawCircle(win, centre, 10, "black")
# click mouse to go on
win.getMouse()
win.close()
drawEye()
def Eyes(rows, columns):
for i in range( rows ):
print colums * draweye
Eyes()