from tkinter import *

root = Tk()
scrollbar = Scrollbar(root)
scrollbar.grid(row=0,column=1,sticky=N+S)

mylist = Canvas(root, yscrollcommand = scrollbar.set )
for line in range(100):
   a = (mylist, "This is line number " + str(line))

mylist.grid(row=0,column=0)
scrollbar.config( command = mylist.yview )

mainloop()

56ceba61bd9315b00ea23bb2be932c39b8f159da
<mask token>

<mask token>
scrollbar.grid(row=0, column=1, sticky=N + S)
<mask token>
for line in range(100):
    a = mylist, 'This is line number ' + str(line)
mylist.grid(row=0, column=0)
scrollbar.config(command=mylist.yview)
mainloop()

<mask token>
root = Tk()
scrollbar = Scrollbar(root)
scrollbar.grid(row=0, column=1, sticky=N + S)
mylist = Canvas(root, yscrollcommand=scrollbar.set)
for line in range(100):
    a = mylist, 'This is line number ' + str(line)
mylist.grid(row=0, column=0)
scrollbar.config(command=mylist.yview)
mainloop()

from tkinter import *
root = Tk()
scrollbar = Scrollbar(root)
scrollbar.grid(row=0, column=1, sticky=N + S)
mylist = Canvas(root, yscrollcommand=scrollbar.set)
for line in range(100):
    a = mylist, 'This is line number ' + str(line)
mylist.grid(row=0, column=0)
scrollbar.config(command=mylist.yview)
mainloop()

from tkinter import *

root = Tk()
scrollbar = Scrollbar(root)
scrollbar.grid(row=0,column=1,sticky=N+S)

mylist = Canvas(root, yscrollcommand = scrollbar.set )
for line in range(100):
   a = (mylist, "This is line number " + str(line))

mylist.grid(row=0,column=0)
scrollbar.config( command = mylist.yview )

mainloop()
