test2023h5's picture
Upload 44 files
7798609 verified
raw
history blame
604 Bytes
'''
title: Slider
'''
import simplestart as ss
ss.md("## ss.slider")
ss.space()
ss.md('''
#### πŸ”… Example
''')
ss.md("### Please drag the slider to change the value")
info = ss.text("500")
def onchange(event):
info.text = str(event.value)
sld = ss.slider("<b>my slider</b>", value = 500, min = 0, max = 1000, onchange = onchange, style="width:50%")
ss.space()
ss.write("#### πŸ”Ž Code")
ss.md('''
```python
import simplestart as ss
info = ss.text("500")
def onchange(state, value):
info.text = value
ss.slider(500, 0, 1000, onchange=onchange)
#sld.min = 200
#sld.step = 5
''')