Themed Tkinter Text widget with modern styling support.
- 🎨 Theme-aware text widget that automatically adapts to ttk themes
- 📜 Built-in ScrolledText component with vertical/horizontal scrollbars
- 🖥️ Native integration with ttk styles and themes
- 🔄 Dynamic theme switching support
Example screenshots of Windows 11, Windows 10, and Windows 7.
ttk-text provides two widgets:
ttk_text.ThemedText: A themed Text widget, as a replacement fortkinter.Text.ttk_text.scrolled_text.ScrolledText: An extension ofThemedTextwith vertical/horizontal scrollbars, as a replacement fortkinter.scrolledtext.ScrolledText.
You can use ThemedText and ScrolledText just like you would use tkinter.Text.
Here’s an example:
from tkinter import Tk
from ttk_text import ThemedText
from ttk_text.scrolled_text import ScrolledText
root = Tk()
themed_text = ThemedText(root)
themed_text.pack(fill="both", expand=True)
scrolled_text = ScrolledText(root)
scrolled_text.pack(fill="both", expand=True)
root.mainloop()See CONTRIBUTING.md for details.
This project is licensed under the MIT License, see the LICENSE file for details.


