Scrolled Text Widget!! – Tkinter TTKBootstrap 22

In this video we’ll look at the Scrolled Text Widget for TTKBootstrap!

Yes, you read that right! There’s a built in Text Widget that comes with it’s own scrollbar in TTKBootstrap!

No more needing to code a scrollbar and add it to a text widget, just use the ScrolledText widget and it couldn’t be easier.

Python Code: scroll_text.py
(Github Code)

from tkinter import *
import ttkbootstrap as tb
from ttkbootstrap.scrolled import ScrolledText

root = tb.Window(themename="superhero")

#root = Tk()
root.title("TTK Bootstrap! Scrolled Text Widget?!")
root.iconbitmap('images/codemy.ico')
root.iconbitmap(default='images/codemy.ico')
root.geometry('700x350')

# Text Widget
my_text = ScrolledText(root, height=20, width=110, wrap=WORD, autohide=False, bootstyle="danger", hbar=True)
my_text.pack(pady=15)



root.mainloop()


John Elder

John is the CEO of Codemy.com where he teaches over 100,000 students how to code! He founded one of the Internet's earliest advertising networks and sold it to a publicly company at the height of the first dot com boom. After that he developed the award-winning Submission-Spider search engine submission software that's been used by over 3 million individuals, businesses, and governments in over 42 countries. He's written several Amazon #1 best selling books on coding, and runs a popular Youtube coding channel.

View all posts

Add comment

John Elder

John is the CEO of Codemy.com where he teaches over 100,000 students how to code! He founded one of the Internet's earliest advertising networks and sold it to a publicly company at the height of...