|
@@ -7,7 +7,7 @@ with ui.card():
|
|
ui.label('Interactive elements', 'h5')
|
|
ui.label('Interactive elements', 'h5')
|
|
with ui.row():
|
|
with ui.row():
|
|
with ui.column():
|
|
with ui.column():
|
|
- ui.button('Click me!', on_click=lambda: output.set_text('Click'))
|
|
|
|
|
|
+ ui.button('Click me!', icon='touch_app', on_click=lambda: output.set_text('Click'))
|
|
ui.checkbox('Check me!', on_change=lambda e: output.set_text('Checked' if e.value else 'Unchecked'))
|
|
ui.checkbox('Check me!', on_change=lambda e: output.set_text('Checked' if e.value else 'Unchecked'))
|
|
ui.switch('Switch me!', on_change=lambda e: output.set_text('Switched' if e.value else 'Unswitched'))
|
|
ui.switch('Switch me!', on_change=lambda e: output.set_text('Switched' if e.value else 'Unswitched'))
|
|
ui.slider(0, 100, on_change=lambda e: output.set_text(e.value))
|
|
ui.slider(0, 100, on_change=lambda e: output.set_text(e.value))
|
|
@@ -22,8 +22,10 @@ with ui.card():
|
|
|
|
|
|
with ui.card():
|
|
with ui.card():
|
|
ui.label('Timer', 'h5')
|
|
ui.label('Timer', 'h5')
|
|
- time = ui.label()
|
|
|
|
- ui.timer(0.1, lambda: time.set_text(datetime.now().strftime("%X")))
|
|
|
|
|
|
+ with ui.row():
|
|
|
|
+ ui.icon('far fa-clock')
|
|
|
|
+ time = ui.label()
|
|
|
|
+ ui.timer(0.1, lambda: time.set_text(datetime.now().strftime("%X")))
|
|
|
|
|
|
with ui.card():
|
|
with ui.card():
|
|
ui.label('Matplotlib', 'h5')
|
|
ui.label('Matplotlib', 'h5')
|