From ef524718feca45f384cace4132e6f39bbe96e668 Mon Sep 17 00:00:00 2001 From: = <=> Date: Wed, 7 Feb 2024 14:28:40 +0100 Subject: [PATCH] renamed place to draw --- aztecDiamond.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aztecDiamond.py b/aztecDiamond.py index 44771fc..44b5814 100644 --- a/aztecDiamond.py +++ b/aztecDiamond.py @@ -17,7 +17,7 @@ class AztecDiamond(Frame): self.black = True self.initialize_draw() self.init_tiles() - self.place() + self.draw() def init_tiles(self): i = random() @@ -120,7 +120,7 @@ class AztecDiamond(Frame): def grow_and_draw(self): self.grow() - self.place() + self.draw() def initialize_draw(self): self.initialize_draw_constants() @@ -135,7 +135,7 @@ class AztecDiamond(Frame): self.available_size = round(min(x, y)*self.alpha) self.corner = ((x-self.available_size)/2, (y-self.available_size)/2) - def place(self): + def draw(self): self.canvas.delete("all") (x, y) = self.corner