Themed Tkinter Text widget with modern styling support.
Project description
Themed Tkinter Text
Themed Tkinter Text widget with modern styling support.
Features
- 🎨 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
Screenshots
Example screenshots of Windows 11, Windows 10, and Windows 7.
Using the Widgets
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()
Contributing
See CONTRIBUTING.md for details.
License
This project is licensed under the MIT License, see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ttk_text-0.3.1.tar.gz.
File metadata
- Download URL: ttk_text-0.3.1.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.1 {"installer":{"name":"uv","version":"0.10.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
274b6e83fe36d46cce41755a3abe40ce4e005cf03e84f7243fb905536f75a343
|
|
| MD5 |
c63d605b2944cb02993fc4d3480eb07a
|
|
| BLAKE2b-256 |
eed73915e878355586ef860dc238b9f5572f126a839f4939239a504376e7dced
|
File details
Details for the file ttk_text-0.3.1-py3-none-any.whl.
File metadata
- Download URL: ttk_text-0.3.1-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.1 {"installer":{"name":"uv","version":"0.10.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
944cd1e04dcd326ce3f6d9058b4ce7da297c423f010b4a9e7fcc396131e5d4b0
|
|
| MD5 |
dae8171a8e7d131a5e039ff3cca42ce3
|
|
| BLAKE2b-256 |
6f262388ae8bdcbfe3704bbb2847b1198c853c1dc322fa6cf7930a4e61cc00da
|