Exception: Control must be added to the page first. #705
Isnaeni2003
started this conversation in
General
Replies: 1 comment
-
Hey there. I don't know if you still have this issue... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
i have a problem. why every call update() to change state . but the variable you want to change always has to be above it . it makes me difficult in the logic of writing code like that . and i think it is a bug of flet .
I'm here to make a simple GestureDetector animation. the case is when you scroll on the yellow container, the animated Switch runs. And can you run the animation without you having to click on a certain button or event. for example on the web. You can see an animation automatically when the page has just been opened. is there a way?
this my code :
This Error
Traceback (most recent call last):
File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
scroll me
self.run()
File "/usr/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.10/dist-packages/flet/event_handler.py", line 16, in handler
h(r)
File "/home/minto/belajar/ytpro/fletpro/animationflet/main.py", line 9, in scrollme
animated.update()
File "/usr/local/lib/python3.10/dist-packages/flet/control.py", line 258, in update
raise Exception("Control must be added to the page first.")
Exception: Control must be added to the page first.
Beta Was this translation helpful? Give feedback.
All reactions