def __init__(self, line_width=2):
        # Needs to be first.
        CairoSlider.__init__(self)

        # If False the colored part is not drawn
        self._draw_full_line = True

        # Some const attributes
        self._line_width = line_width
        self._thickness = (self._line_width + 2) / 2
 def __init__(self, stars=5, offset=0.2):
     # Needs to be first.
     CairoSlider.__init__(self)
     self._stars, self._offset = stars, offset
 def __init__(self, line_width=2, line_gap=1):
     CairoSlider.__init__(self)
     self._line_width = line_width
     self._line_gap = line_gap