Explorar o código

making sure we see the printed statement

Rodja Trappe %!s(int64=4) %!d(string=hai) anos
pai
achega
341928a636
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -33,7 +33,7 @@ Write your nice GUI in a file `main.py`:
 from nicegui import ui
 
 ui.label('Hello NiceGUI!')
-ui.button('BUTTON', on_click=lambda: print('button was pressed'))
+ui.button('BUTTON', on_click=lambda: print('button was pressed', flush=True))
 ```
 
 Launch it with: