from tkinter import *

root=Tk()
root.title("Scrollbar")
scrollbar=Scrollbar(root)
scrollbar.pack(side=RIGHT,fill=Y)
text=Text(root,yscrollcommand=scrollbar.set,height=100)
text.pack(fill=BOTH)
scrollbar.config(command=text.yview)
root.mainloop()
10a4de82bb304ad3c29a0b1ba9b1584c9e47d254
<mask token>

<mask token>
root.title('Scrollbar')
<mask token>
scrollbar.pack(side=RIGHT, fill=Y)
<mask token>
text.pack(fill=BOTH)
scrollbar.config(command=text.yview)
root.mainloop()

<mask token>
root = Tk()
root.title('Scrollbar')
scrollbar = Scrollbar(root)
scrollbar.pack(side=RIGHT, fill=Y)
text = Text(root, yscrollcommand=scrollbar.set, height=100)
text.pack(fill=BOTH)
scrollbar.config(command=text.yview)
root.mainloop()

from tkinter import *
root = Tk()
root.title('Scrollbar')
scrollbar = Scrollbar(root)
scrollbar.pack(side=RIGHT, fill=Y)
text = Text(root, yscrollcommand=scrollbar.set, height=100)
text.pack(fill=BOTH)
scrollbar.config(command=text.yview)
root.mainloop()

from tkinter import *

root=Tk()
root.title("Scrollbar")
scrollbar=Scrollbar(root)
scrollbar.pack(side=RIGHT,fill=Y)
text=Text(root,yscrollcommand=scrollbar.set,height=100)
text.pack(fill=BOTH)
scrollbar.config(command=text.yview)
root.mainloop()