option orient description it can be set to horizontal or vertical depending upon the orientation of the scrollbar jump it is used to control the behavior of the scroll jump if it set to then the callback is called when the user releases the mouse button repeatdelay this option tells the duration up to which the button is to be pressed before the slider starts moving in that direction repeatedly the default is ms takefocus we can tab the focus through this widget by default we can set this option to if we don' want this behavior troughcolor it represents the color of the trough width it represents the width of the scrollbar code snippetfrom tkinter import top tk(sb scrollbar(topsb pack(side rightfill ymylist listbox(topyscrollcommand sb set for line in range( )mylist insert(end"number str(line)mylist packside left sb configcommand mylist yview mainloop(outputfig output of scrollbar