Skip to content

Commit 4356200

Browse files
authored
Update 01_searchbarexample.py (#136)
Since close_view_async and open_view_async are deprecated, I think it would be wise to update examples
1 parent 5c523f6 commit 4356200

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

python/apps/controls-gallery/examples/input/searchbar/01_searchbarexample.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55

66
def example():
7-
async def close_anchor(e):
7+
def close_anchor(e):
88
text = f"Color {e.control.data}"
99
print(f"closing view from {text}")
10-
await anchor.close_view_async(text)
10+
anchor.close_view(text)
1111

12-
async def open_anchor(e):
13-
await anchor.open_view_async()
12+
def open_anchor(e):
13+
anchor.open_view()
1414

1515
def handle_change(e):
1616
print(f"handle_change e.data: {e.data}")

0 commit comments

Comments
 (0)