Ver código fonte

making sure we see the printed statement

Rodja Trappe 4 anos atrás
pai
commit
341928a636
1 arquivos alterados com 1 adições e 1 exclusões
  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: