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 Distributions
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.3-py3-none-any.whl.
File metadata
- Download URL: ttk_text-0.3.3-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b053d2ae8866385e7c9f0f11f6ba166c01f58ae0b86bc230f348d9d8a7b7a10b
|
|
| MD5 |
4d576addaabcc89c4e9a1e8c5394e280
|
|
| BLAKE2b-256 |
331f7f469403486308997f0cae2d9e3eee428ebceceb2626a0ff185f8948c7fe
|
Provenance
The following attestation bundles were made for ttk_text-0.3.3-py3-none-any.whl:
Publisher:
publish.yml on hellotool/ttk-text
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ttk_text-0.3.3-py3-none-any.whl -
Subject digest:
b053d2ae8866385e7c9f0f11f6ba166c01f58ae0b86bc230f348d9d8a7b7a10b - Sigstore transparency entry: 1333911013
- Sigstore integration time:
-
Permalink:
hellotool/ttk-text@204c975c74f656275b5f718fe6c04d743de0b815 -
Branch / Tag:
refs/tags/v0.3.3 - Owner: https://github.com/hellotool
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@204c975c74f656275b5f718fe6c04d743de0b815 -
Trigger Event:
release
-
Statement type: