|
|
@@ -157,6 +157,11 @@ class SquareWindow:
|
|
|
# Use black text for better contrast against any background
|
|
|
self.canvas.create_text(center_x, center_y, text=str(number), fill="black", font=("Arial", 10))
|
|
|
|
|
|
+ # Draw a line segment at the bottom edge of the square (inside the square) only if size >= 25
|
|
|
+ if size >= 50:
|
|
|
+ line_y = y + size - 20 # Just above the bottom edge of the square
|
|
|
+ self.canvas.create_line(x, line_y, x + size, line_y, fill="black", width=1)
|
|
|
+
|
|
|
# Record the square's position information
|
|
|
self.square_positions[number] = (x, y, size, parent_number)
|
|
|
|