'If newpos is specified, sets the position of sash number index.
May adjust the positions of adjacent sashes to ensure that
positions are monotonically increasing. Sash positions are further
constrained to be between 0 and the total size of the widget.
Returns the new position of sash number index.'

def sashpos(self, index, newpos=None):

    return self.tk.getint(self.tk.call(self._w, 'sashpos', index, newpos))
