Explorar o código

fix "await dialog" example

Falko Schindler %!s(int64=2) %!d(string=hai) anos
pai
achega
6467807e3f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)