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
Replication: I'm writing an app that will present a series of Scenes based on timing or user actions (mostly tapping to skip, like in the Stories on social apps). The app is managed by the base Scene that just sets the background colour and manages the timing in the did_evaluate_actions method. This base scene has no children. And when the Base.show_modal_scene(otherScene) is called it gives max() arg is an empty sequence, because the scene.py code assumes (line 125) that the base Scene that displays a modal has other children, as seen on the screenshot:
Fix: add a check if for children existing:
other_scene.z_position = 1 + max(n.z_position for n in self.children) if self.children else 0
The text was updated successfully, but these errors were encountered:
This is quite simple problem in the scene.py.
Replication: I'm writing an app that will present a series of Scenes based on timing or user actions (mostly tapping to skip, like in the Stories on social apps). The app is managed by the base Scene that just sets the background colour and manages the timing in the
did_evaluate_actions
method. This base scene has no children. And when the Base.show_modal_scene(otherScene) is called it givesmax() arg is an empty sequence
, because thescene.py
code assumes (line 125) that the base Scene that displays a modal has other children, as seen on the screenshot:Fix: add a check if for children existing:
other_scene.z_position = 1 + max(n.z_position for n in self.children) if self.children else 0
The text was updated successfully, but these errors were encountered: