1234567891011 |
- #!/usr/bin/env python3
- from nicegui import ui
- with ui.card():
- custom = ui.custom(on_change=lambda number: label.set_text(f'Custom value: {number}'))
- ui.button('Add 100', on_click=lambda: custom.add(100))
- label = ui.label()
- ui.joystick(on_move=lambda e: print("move", e.vector))
|