CSlider - Dliammc/CustomPyQt GitHub Wiki

Example


slider = CSlider(self, minimum=0, maximum=100, value=40)

Arguments

Argument Value
master self, Any PySide Qt Widget or PyCt Widget
width integer, width in pixels
height integer, height in pixels
button_width integer, button width in pixels
button_height integer, button height in pixels
orientation string, horizontal or vertical orientation, default is horizontal
minimum integer, minimum value in pixels, default is 0
maximum integer, maximum value in pixels, default is 100
step integer, interval of values, default is 1
value integer, current value in pixels, default is 50
tooltip string, tooltip
border_width integer, border width in pixels
corner_radius integer, corner radius in pixels
button_border_width integer, button border width in pixels
button_corner_radius integer, button corner radius in pixels
background_color tuple: ("light color", "dark color") or single color, background color
progress_color tuple: ("light color", "dark color") or single color, value progress color
border_color tuple: ("light color", "dark color") or single color, border color
button_background_color tuple: ("light color", "dark color") or single color, button background color
button_border_color tuple: ("light color", "dark color") or single color, button border color
button_hover_color tuple: ("light color", "dark color") or single color, button hover color
button_pressed_color tuple: ("light color", "dark color") or single color, button pressed color
disabled_background_color tuple: ("light color", "dark color") or single color, disabled background color
disabled_button_background_color tuple: ("light color", "dark color") or single color, disabled button background color