Sfoglia il codice sorgente

fix "await dialog" example

Falko Schindler 2 anni fa
parent
commit
6467807e3f
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      main.py

+ 1 - 1
main.py

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