Selaa lähdekoodia

making sure we see the printed statement

Rodja Trappe 4 vuotta sitten
vanhempi
säilyke
341928a636
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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: