Преглед изворни кода

making sure we see the printed statement

Rodja Trappe пре 4 година
родитељ
комит
341928a636
1 измењених фајлова са 1 додато и 1 уклоњено
  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: