from tkinter import *
root = Tk()
scrollbar = Scrollbar(root, orient=VERTICAL)
text1 = Text(root, yscrollcommand=scrollbar.set)
text2 = Text(root)
scrollbar.config(command=text1.yview)
text1.grid(row=0, column=1)
text2.grid(row=0, column=2)
scrollbar.grid(row=0, column=3, sticky=N+S)
root.mainloop()