Bladeren bron

fix "await dialog" example

Falko Schindler 2 jaren geleden
bovenliggende
commit
6467807e3f
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      main.py

+ 1 - 1
main.py

@@ -358,7 +358,7 @@ with example(async_dialog):
 
 
     async def show():
     async def show():
         result = await dialog
         result = await dialog
-        await ui.notify(f'You chose {result}')
+        ui.notify(f'You chose {result}')
 
 
     ui.button('Await a dialog', on_click=show)
     ui.button('Await a dialog', on_click=show)