Skip to main content

Themed Tkinter Text widget with modern styling support.

Project description

Themed Tkinter Text

Contributor Covenant 2.1 MIT License

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

Windows 11 Windows 10 Windows 7

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 for tkinter.Text.
  • ttk_text.scrolled_text.ScrolledText: An extension of ThemedText with vertical/horizontal scrollbars, as a replacement for tkinter.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 Contribution Guidelines for details.

License

This project is licensed under the MIT License, see the LICENSE file for details.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ttk_text-0.3.4-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file ttk_text-0.3.4-py3-none-any.whl.

File metadata

  • Download URL: ttk_text-0.3.4-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

Hashes for ttk_text-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 da7736fff0f52f79b89264f383afbcf44597937c49ded63e7a6c83e2a411a004
MD5 c9ea9af01ec94c939f1ef043ecc604dd
BLAKE2b-256 38f624b6206108a4d6ce50fbb6dd77092eff654586932754699fefa802cb6c9c

See more details on using hashes here.

Provenance

The following attestation bundles were made for ttk_text-0.3.4-py3-none-any.whl:

Publisher: publish.yml on hellotool/ttk-text

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page