box=Text(window) scrollbar=Scrollbar(window, orient=VERTICAL, command=box.yview) scrollbar.pack(side=RIGHT, fill=Y) box.config(yscrollcommand=scrollbar.set)