def set_knob_pos(self, pos):
        pos = max(min(pos, 1 - self._knob_size/2), 2/self._knob_size)

        self._value = self._min_value + (self._max_value - self._min_value) * pos
dataset/ETHPy150Open jorgecarleitao/pyglet-gui/pyglet_gui/scrollbars.py/ScrollBar.set_knob_pos/swapped operands of `/`