From 1d36d1ba70290c5e17f01da06fbedd8ae5e8368e Mon Sep 17 00:00:00 2001 From: non-npc <101848445+non-npc@users.noreply.github.com> Date: Thu, 12 Sep 2024 13:41:56 -0400 Subject: [PATCH] Update shader-mask-single-image.py to resolve TypeError resolved TypeError: ShaderMask.__init__() got multiple values for argument 'shader' --- python/controls/shader-mask/shader-mask-single-image.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python/controls/shader-mask/shader-mask-single-image.py b/python/controls/shader-mask/shader-mask-single-image.py index e06d8013..351dd4dc 100644 --- a/python/controls/shader-mask/shader-mask-single-image.py +++ b/python/controls/shader-mask/shader-mask-single-image.py @@ -1,12 +1,11 @@ import flet as ft - def main(page: ft.Page): page.add( ft.Row( [ ft.ShaderMask( - ft.Image( + content=ft.Image( src="https://picsum.photos/200/200?1", width=200, height=200, @@ -24,5 +23,5 @@ def main(page: ft.Page): ) ) - ft.app(target=main) +