You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defmove_on_top(card, controls):
"""Moves draggable card to the top of the stack"""controls.remove(card)
controls.append(card)
page.update()
andItriedthefollowingtoodefmove_on_top(card, controls):
controls.insert(0, card)
page.update()
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Question
move_on_top() introduced in https://flet.dev/docs/tutorials/python-solitaire#step-3-adding-a-second-card doesn't work.
I simply copy and paste the whole code in the tutorial page, but the green card is still under the yellow card when dragging.
How can fix this issue?
P.S. I saw someone was on the same boat: https://stackoverflow.com/questions/78763325/how-can-i-fix-control-must-be-added-to-the-page-first-error-while-using-gestu
Code sample
Error message
No response
------------------------------------------------------
Beta Was this translation helpful? Give feedback.
All reactions