Define tick positions for viz.SLIDER
Is there a way to define precise tick positions for a viz.SLIDER GUI element? For example, I want to only let someone move the slider to defined points along a linear space - numpy.linspace(0, 1, 26) - so I can easily get the index for the where the tick is located.
Any assistance is greatly appreciated. Chris |
Within the slider callback you can compute the nearest defined point and move the tick to it. Example:
Code:
import viz |
Thanks. That works as advertised.
|
All times are GMT -7. The time now is 05:13 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC