basic setup

This commit is contained in:
Ross
2025-05-05 08:04:54 +01:00
commit b157a13df9
4 changed files with 123 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
from nicegui import ui
from report_stroke import report_stroke # Import the report_stroke page
def main():
ui.label('Welcome to My NiceGUI App!')
ui.button('Click Me', on_click=lambda: ui.navigate.to('/report_stroke'))
@ui.page('/about')
def about_page():
ui.label('This is the About page.')
# Register the report_stroke page
@ui.page('/report_stroke')
def report_stroke_page():
report_stroke()
ui.run()
if __name__ in {"__main__", "__mp_main__"}:
main()