Scrolled Text Widget!! - Tkinter TTKBootstrap 22

preview_player
Показать описание
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.

#tkinter #codemy #JohnElder

Timecodes

0:00​​ - Introduction
2:04 - Import ScrolledText Widget
2:31 - Create ScrolledText Widget
4:03 - AutoHide Scrollbar
5:21 - Set Bootstyle
6:01 - Check The TTKBootstrap Documentation
6:24 - Add Horizontal Scrollbar
6:58 - Conclusion
Рекомендации по теме
Комментарии
Автор

▶ Watch TTKBootstrap Playlist ✅ FREE Tkinter Widget Book
▶ See More At: ✅ Subscribe To My YouTube Channel:
▶ MASSIVE TKINTER.COM DISCOUNT ✅ Join My Facebook Group:
▶ Get The Code For This Video

TkinterPython
Автор

Thanks a lot, as always John. Your videos are helpful and fun to watch. 🎉

EFoxVN
Автор

Thank you so much.
Is it possible to stylize the text? like to make a list from selected words and make them bold in the text after that?

Tritoon
Автор

Hi John, Thanks for sharing. Your videos are very helpful and easy to understand as compared to other videos online.

I was wondering how we could resize the text widget according to the contents that are inserted in it.
i.e the width and height of the text widget will be adjusted according to the content in it. Could you help me in understanding this ?
Thanks :)

rutujamurdande
Автор

Hi!
Thanks for all your great Videos!
I guess I have a stupid question, but I will ask it anyways.
When I used

import ttkbootstrap as tb
textfield = tb.ScrolledText(root, bootstyle="danger", autohide=True)

I got always errors that bootstyle and autohide are unknown.

Using the following worked fine:

import ttkbootstrap as tb
from ttkbootstrap.scrolled import ScrolledText

self.textfield = ScrolledText(, bootstyle="danger", autohide=True)

Can you explain why the first one is not working?
Shouldn't the "import ttkbootstrap as tb" include the scrolled.ScrolledText stuff?

BR

MrNaarrf
Автор

can this widget be used as an entry field and an output field?

ryanriddick
Автор

Doctor, how to convert customtkinter files to exe format

محمدمبروك-ثو
Автор

How can i disabled this ScrolledText widget ?

Techy_Genes
Автор

Hi,

Thanks, very helpful. Is it possible to also autoscroll this widget to the end if programatically adding text to it?

Something like...
...
log_text = ScrolledText(log_frame, height=20, width=110, wrap=WORD, autohide=True, bootstyle="primary")
log_text.pack(pady=20)
...
for i in range(100):
message = f"Hello {i}"
timestamp = %H:%M:%S')
self.log_text.insert(END, f"\n{timestamp}: {message}")
### Can we now here somehow ensure that we automatically scroll to the end as well? ###
...

Thanks

jonasback