Ejemplo n.º 1
0
def test_ui_range_slider(interactive=False):
    range_slider_test = ui.RangeSlider(shape="square")

    if interactive:
        show_manager = window.ShowManager(size=(600, 600),
                                          title="DIPY Line Double Slider")
        show_manager.ren.add(range_slider_test)
        show_manager.start()
Ejemplo n.º 2
0
line_slider.on_change = translate_cube
"""
Range Slider
============

Finally, we can add a range slider. This element is composed of two sliders.
The first slider has two handles which let you set the range of the second.
"""

range_slider = ui.RangeSlider(line_width=8,
                              handle_side=25,
                              range_slider_center=(550, 450),
                              value_slider_center=(550, 350),
                              length=250,
                              min_value=0,
                              max_value=10,
                              font_size=18,
                              range_precision=2,
                              value_precision=4,
                              shape="square")
"""
Select menu
============

We just added many examples. If we showed them all at once, they would fill the
screen. Let's make a simple menu to choose which example is shown.

We'll first make a list of the examples.
"""