Slider

Slider module

This file contains a collection of functions which implement the slider to be used within the GUI.

Usage:

To use this module, import it and instantiate is as you wish:

from Paint4Brains.GUI.Slider import Slider

window = widget_slider = Slider(parameters)

class Paint4Brains.GUI.Slider.Slider(minimum, maximum, parent=None)

Slider class.

Implements the slider to be used in the GUI. Basically a number of nested Horizontal and Vertical Layouts, with a label showing the current value and a slider imported from Qt. Each time the slider in the gui is moved, the value of self.x and the label are updated by the method set_label_value

Args:
minimum (int): Minimum slider value maximum (int): Maximum slider value parent (class): Base or parent class
set_label_value(value)

Label value

Function to be called each time slider is moved. Updates the label and the stored value.

Args:
value (wrapper): Value by which the slider has moved