PySlider#

class ansys.aedt.toolkits.common.ui.utils.widgets.py_slider.py_slider.PySlider(margin=0, bg_size=20, bg_radius=10, bg_color='#1b1e23', bg_color_hover='#1e2229', handle_margin=2, handle_size=16, handle_radius=8, handle_color='#568af2', handle_color_hover='#6c99f4', handle_color_pressed='#3f6fd1')[source]#

Custom slider widget with customizable styles.

Parameters:
marginint, optional

The margin of the slider, by default 0.

bg_sizeint, optional

The background size, by default 20.

bg_radiusint, optional

The background border radius, by default 10.

bg_colorstr, optional

The background color, by default “#1b1e23”.

bg_color_hoverstr, optional

The background color on hover, by default “#1e2229”.

handle_marginint, optional

The margin of the slider handle, by default 2.

handle_sizeint, optional

The size of the slider handle, by default 16.

handle_radiusint, optional

The border radius of the slider handle, by default 8.

handle_colorstr, optional

The color of the slider handle, by default “#568af2”.

handle_color_hoverstr, optional

The color of the slider handle on hover, by default “#6c99f4”.

handle_color_pressedstr, optional

The color of the slider handle when pressed, by default “#3f6fd1”.