blob: 859dba2b216b49bfbb093a94aaad13128e33663b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
from nicegui import ui
def main():
with ui.splitter(value=30) as splitter:
splitter.style('width: 100%; height: 100%;')
with splitter.before:
with ui.list().props('dense separator'):
ui.item('Sweet Child o\' Mine')
ui.item('Elembivos')
ui.item('Tears of the Dragon')
ui.item('Victory Song')
with splitter.after:
with ui.column() as column:
column.style('width: 100%;')
ui.slider(min=0, max=120, value=100)
with ui.row():
ui.button('-5')
ui.slider(min=50, max=120, step=5, value=100)
ui.button('+5')
ui.slider(min=0, max=100, value=0)
with ui.row():
ui.button('Prev')
ui.button('-25%')
ui.button('-5%')
ui.button('-1%')
ui.button('+1%')
ui.button('+5%')
ui.button('+25%')
ui.button('Next')
with ui.row():
ui.button('Set A')
ui.button('Set B')
ui.button('Previous AB')
ui.button('Next AB')
with ui.row():
ui.button('Toggle AB')
ui.button('Stop')
ui.button('Start')
ui.button('Jump to A')
ui.run()
if __name__ in {'__main__', '__mp_main__'}:
main()
|