I have a small (big actually) assignment to take care of, and I would like to know if anyone can help me out with this. I've searched for answers a few times but with no success
(http://s24.postimg.org/89r1zmgl1/Untitled.png)<--- The ellipse
I would like to make an arbitrary number of circles appear on the ellipse that you can see on the link above. Both the ellipse and the circles are defined with Tkinter.
class NetworkFrame:
def __init__(self, master, number_of_people):
DisplayFrame = Canvas(master, bg="white", width=720, height=300)
DisplayFrame.grid(row=0, columnspan=7, column=0, sticky='W', padx=5, pady=5)
DisplayFrame.create_oval(20, 20, 700, 280, width=1)
So my idea is - The user enters a certain number (number_of_people), and it makes that certain number of circles appear on the path defined by the ellipse, evenly spaced and symmetrically placed.
Ideally, that's what I want to happen so I can adapt it to any shape I have defined earlier, but if there is another way to make them appear to follow an elliptical path, it's also acceptable.
Thank you for your time!