Skip to content

[Question] how to use Animation end callback? #3307

Answered by jjjunehkim
jjjunehkim asked this question in Q&A
Discussion options

You must be logged in to vote

I found a solution. There was a part where I was mistaken, but I resolved it.

I modified the "def animate_repeat(self, e):" function part.
And then, I created another function and placed inside it a code that calls the function “def animate_container(self)” using “thread”.

Modified portion of the "def animate repeat(self, e)" function
->
def animate_repeat(self, e):
print(e)
time.sleep(0.5)
if e=="offset":
notice_text_container.animate_offset.duration=0
notice_text_container.offset = ft.transform.Offset(0.6, 0)
self.update()

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@jjjunehkim
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by jjjunehkim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
help wanted Extra attention is needed
2 participants