|
пре 4 година | |
---|---|---|
.github | пре 4 година | |
.vscode | пре 4 година | |
nicegui | пре 4 година | |
sceenshots | пре 4 година | |
.gitignore | пре 4 година | |
LICENSE | пре 4 година | |
README.md | пре 4 година | |
development.dockerfile | пре 4 година | |
docker-compose.yml | пре 4 година | |
docker.sh | пре 4 година | |
examples.py | пре 4 година | |
main.py | пре 4 година | |
nicegui.code-workspace | пре 4 година | |
poetry.lock | пре 4 година | |
pyproject.toml | пре 4 година |
We like Streamlit but find it does to much magic when it comes to state handling. In search for an alernative nice library to write simple graphical user interfaces in Python we discovered justpy. While too "low-level-html" for our daily usage it provides a great basis for "NiceGUI".
NiceGUI is intended to be used for small scripts and user interfaces with a very limited user base. Custom "Smart-Home Control" solutions or "Robotics" for example. It's also helpful for development like tweaking/configuring a machine learning training or tuning motor controllers.
python3 -m pip install nicegui
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'))
Launch it with:
python3 main.py
Note: The script will automatically reload the GUI if you modify your code.
API Reference is hosted at https://nicegui.io. Also have a look at examples.py for an extensive demonstration what you can do with NiceGUI.