Set point outline color correctly
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
The outline of the oval drawn now has the same color as the fill color to display the whole point in this color.
This commit is contained in:
2
point.py
2
point.py
@@ -38,7 +38,7 @@ class Point():
|
||||
center_y = height - (self.get_y() * (height / max_y))
|
||||
if center_x <= width and center_y <= height:
|
||||
canvas.create_oval(center_x - radius, center_y - radius, \
|
||||
center_x + radius, center_y + radius, fill=color)
|
||||
center_x + radius, center_y + radius, fill=color, outline=color)
|
||||
return center_x, center_y
|
||||
|
||||
def get_random(min_x=0, max_x=100, min_y=0, max_y=100):
|
||||
|
||||
Reference in New Issue
Block a user