Skip to main content

Scroll Bar in Python Tkinter

 





from tkinter import *
ak = Tk()
ak.geometry("500x300")

scroll = Scrollbar(ak)
scroll.pack(side=RIGHT,fill=Y)


text = Text(ak,yscrollcommand=scroll.set)
text.pack(fill=BOTH)

scroll.config(command=text.yview)

ak.mainloop()

Comments