def redrawAll(canvas, data): (rows, cols) = (data.rows, data.cols) util.drawBackground(canvas, data) canvas.create_text(140, 380, text = "Clear All The Jelly", font = "Helvetica 18") for row in range(rows): for col in range(cols): data.jellies[row][col].draw(canvas) data.jelly2[row][col].draw(canvas) data.candies[row][col].draw(canvas)
def demoLevelRedrawAll(canvas, data): (rows, cols) = (data.rows, data.cols) util.drawBackground(canvas, data) for row in range(rows): for col in range(cols): data.candies[row][col].draw(canvas)