17
17
18
18
19
19
class SliderValueFeature (GraphicFeature ):
20
+ # A bit much to have a class for this but this allows it to integrate with the fastplotlib callback system
20
21
"""
21
- A bit much to have a class for this but this allows it to integrate with the fastplotlib callback system
22
+ Manages the slider value and callbacks
22
23
23
24
**pick info**
24
25
25
- +------------------+----------------------------------------------------------------+
26
- | key | value |
27
- +==================+================================================================+
28
- | "new_data" | the new slider position in world coordinates |
29
- | "selected_index" | the graphic data index that corresponds to the slider position |
30
- | "world_object" | parent world object |
31
- | "graphic" | LineSlider instance |
32
- +------------------+----------------------------------------------------------------+
26
+ ================== ================================================================
27
+ key value
28
+ ================== ================================================================
29
+ "new_data" the new slider position in world coordinates
30
+ "selected_index" the graphic data index that corresponds to the slider position
31
+ "world_object" parent world object
32
+ ================== ================================================================
33
33
34
34
"""
35
35
def __init__ (self , parent , axis : str , value : float ):
@@ -110,10 +110,11 @@ def __init__(
110
110
111
111
Features
112
112
--------
113
- value: SliderValueFeature
114
- | value() returns the current slider position in world coordinates
115
- | use value.add_event_handler() to add callback functions that are called
116
- when the LineSlider value changes. See feaure class for event pick_info table
113
+
114
+ value: :class:`SliderValueFeature`
115
+ ``value()`` returns the current slider position in world coordinates
116
+ use ``value.add_event_handler()`` to add callback functions that are
117
+ called when the LineSlider value changes. See feaure class for event pick_info table
117
118
118
119
"""
119
120
0 commit comments