Falko Schindler пре 1 година
родитељ
комит
bde0983119
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      examples/script_executor/main.py

+ 1 - 1
examples/script_executor/main.py

@@ -34,7 +34,7 @@ ui.button('python3 slow.py', on_click=lambda: run_command('python3 slow.py')).pr
 with ui.row().classes('items-center'):
 with ui.row().classes('items-center'):
     ui.button('python3 hello.py "<message>"', on_click=lambda: run_command(f'python3 hello.py "{message.value}"')) \
     ui.button('python3 hello.py "<message>"', on_click=lambda: run_command(f'python3 hello.py "{message.value}"')) \
         .props('no-caps')
         .props('no-caps')
-    message = ui.input('message')
+    message = ui.input('message', value='NiceGUI')
 
 
 # NOTE on windows reload must be disabled to make asyncio.create_subprocess_exec work (see https://github.com/zauberzeug/nicegui/issues/486)
 # NOTE on windows reload must be disabled to make asyncio.create_subprocess_exec work (see https://github.com/zauberzeug/nicegui/issues/486)
 ui.run(reload=platform.system() != "Windows")
 ui.run(reload=platform.system() != "Windows")