Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Open
Description
Problem
When using a slider there it is not easy to select a precise value when using the mouse. You can do this withslider.set_val
but this is not always convenient.
Proposed Solution
Usewidgets.TextBox
to display the slider readout. Then hook it up so that a user can enter values into the textbox and on submit the slider value will change.
To do this fully properly I think two additional things would need to happen:
- Implement numeric only TextBox
- if user clicks off of TextBox after typing then return the textbox to the current value of the slider.
Additional context and prior art
Inspired by examples here:https://www.smashingmagazine.com/2017/07/designing-perfect-slider/