Hi There,
I'm having a problem looping text I have attached an image of what I want.
Thanks in advance,
Ashley
def drawPatch(win, x, y, colour):
for i in range(5):
for j in range(5):
topLeftX = x + i * 20
topLeftY = y + j * 20
centreX = x + i * 25
centreY = y + j * 25
rectangle = Rectangle(Point(topLeftX, topLeftY),
Point(topLeftX + 20, topLeftY + 20))
rectangle.setOutline(colour)
rectangle.draw(win)
text = Text((Point(centreX, centreY),
Point(centreX + 20, centreY + 20)),"Hi!")
text.draw(win)