Circular Slider: Using this you can make circularly shaped sliders

Circular Slider: Using this you can make circularly shaped sliders

class pymt.ui.widgets.circularslider.MTCircularSlider(**kwargs)

Bases: pymt.ui.widgets.widget.MTWidget

MTCircularSlider is an implementation of a circular scrollbar using MTWidget.

Warning

The widget is drawed from his center. Cause of that, the size of the widget will be automaticly adjusted from the radius of the slider. Eg: if you ask for a radius=100, the widget size will be 200x200

Parameters :
min : int, default is 0

Minimum value of slider

max : int, default is 100

Maximum value of slider

sweep_angle : int, default is 90

The anglular length of the slider you want.

value : int, default is min

Default value of slider

thickness : int, default is 40

Thickness of the slider

radius : int, default is 200

Radius of the slider

rotation : int, default is 0

Start rotation of circle

padding : int

Padding of content

Styles :
slider-color : color

Color of the slider

bg-color : color

Background color of the slider

Events :
on_value_change

Fired when slider value is changed

value

Sets the current value of the slider

Previous topic

Button matrix: a lightweight and optimized grid of buttons

Next topic

Container: easy way to convert a simple BaseObject into a widget

This Page