def place_handle(self):
        """Place handle according to current value."""
        ### calculate x based on value

        ## retrieve starting x
        x = self.selection_area.x

        ## calculate x increment based on value

        increment = round(self.value / self.max_value * self.selection_area.width)

        ## increment x
        x += increment

        ### finally position handle
        self.handle.rect.midtop = (x, self.rect.top)
Place handle according to current value.
nodezator/our3rdlibs/scale.py