16. tk Scrollbar

e.g scrollbar = tk.Scrollbar(root) scrollbar.pack(side="right", fill="y")

text = tk.Text(root, yscrollcommand=scrollbar.set)

scrollbar.config(command=text.yview)