Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
I will assume that you do not observe animations due to the fact that the coordinates of the centers of the pendulums practically do not change for you (the integer part is constant). I think it's in the final_calculations function. Can you show her code?
UPD : in this code, of course, everything is fine. The error, I think, lies here (see the comment on the last line):
i = 0
...
class Pendulum(object):
def __init__(self):
...
self.root.after(0, self.animation, i)
def animation(self, i):
i = i # полагаю, i всегда равно 0
i = 0
...
class Pendulum(object):
def __init__(self):
...
self.root.after(0, self.animation)
def animation(self):
global i
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question