From e1f7b8699da81d71a130d325b10a7b1551c4b30f Mon Sep 17 00:00:00 2001 From: non-npc <101848445+non-npc@users.noreply.github.com> Date: Thu, 12 Sep 2024 13:02:48 -0400 Subject: [PATCH] Update splash-test.py The "splash" property has been deprecated in recent versions of Flet. This patch updates the code to address this issue. --- python/controls/page/splash-test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/controls/page/splash-test.py b/python/controls/page/splash-test.py index 5f1c606f..899bfc4f 100644 --- a/python/controls/page/splash-test.py +++ b/python/controls/page/splash-test.py @@ -6,11 +6,11 @@ def main(page): def button_click(e): - page.splash = ProgressBar() + page.overlay.append(ProgressBar()) btn.disabled = True page.update() sleep(3) - page.splash = None + page.overlay.clear() btn.disabled = False page.update()