def getScrollbarCanvasPortion(scrollbar):
 scrollbarBeginEnd = scrollbar.get()
 return (scrollbarBeginEnd[1] - scrollbarBeginEnd[0])

def getScrollbarCanvasPortion ( scrollbar ) : scrollbarBeginEnd = scrollbar . get ( ) return ( scrollbarBeginEnd [ 1 ] - scrollbarBeginEnd [ 0 ] )
get the canvas portion of the scrollbar .