def set_knob_size(self, height, max_height):
        self._knob_size = float(height)/max_height

        # update the knob position given the new knob size.
        self.set_knob_pos(self._knob_pos())
dataset/ETHPy150Open jorgecarleitao/pyglet-gui/pyglet_gui/scrollbars.py/VScrollbar.set_knob_size/original