code: def _get_pos(self):
          
          if self._canvas.height >= self._max_height:
              return 0
          else:
              return self._canvas.start_line / (self._max_height - self._canvas.height + 1)
docs: Get current position for scroll bar.