Hi!
I’m using Eto in a Python script to get user input. I am using the slider to choose a value, but since the slider only shows ‘ticks’ it’s hard to be sure which value was chosen. I managed to show the value at the beginning, but not to update it as the slider is moved.
How could I show the current slider-value in the Eto form as the slider is being used?
Alternatively, would there be a way to show actual values instead of simple ticks?
I’m a novice and event handling, so this is new to me, very helpful, thank you for taking the time to answer me.
I wasn’t sure at first what the variables (s, e) are that OnSliderChanged needed, and why it can be run without supplying those variables. I suppose it’s specific to event handling? What do those variables represent?
I can’t speak for event handling within python itself but Eto and the rhinocommon sdk are .NET libraries
Events like Slider.ValueChanged sends a call to the handler, passing the sender object (s) and a collection of event arguments (e) into it.
Can someone please help me with how I can use the function OnSliderChangeEvent inside a class?
What I want is that the dynamic 9Current) value when I move the slider must be displayed as a Text box just like how @Will_Wang has demonstrated for Grasshopper Environment.