from tkinter import * # Import tkinter
root = Tk() # init the root window
scrollbar = Scrollbar(root) # assign the scrollbar to the root window
scrollbar.pack( side = RIGHT, fill = Y ) # put the scrollbar on the left side
mainloop() # the main loop