Set the scrollbar. first and last are fractions between 0 and 1 giving the positions of the start and end of the visible portion of the associated document. This method is normally registered as the scrolled widget’s xscrollcommand or yscrollcommand and called by that widget.