Skip to content

Commit

Permalink
Update shader-mask-single-image.py to resolve TypeError
Browse files Browse the repository at this point in the history
resolved TypeError: ShaderMask.__init__() got multiple values for argument 'shader'
  • Loading branch information
non-npc authored Sep 12, 2024
1 parent 728f644 commit 1d36d1b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/controls/shader-mask/shader-mask-single-image.py
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -24,5 +23,5 @@ def main(page: ft.Page):
)
)


ft.app(target=main)

0 comments on commit 1d36d1b

Please sign in to comment.