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 CONTRIBUTING.md 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.2.post1-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file ttk_text-0.3.2.post1-py3-none-any.whl.

File metadata

  • Download URL: ttk_text-0.3.2.post1-py3-none-any.whl
  • Upload date:
  • Size: 9.0 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.2.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 e08c6806ccfddc1e0c0e857900331631c33d03b55af04094031b88abab395ef6
MD5 34562837e701957285fb4689e1632dab
BLAKE2b-256 5f5e076aac804d9d2cc9bf8203ea2693c72632c8ed59b32052d8b0078a8f38f8

See more details on using hashes here.

Provenance

The following attestation bundles were made for ttk_text-0.3.2.post1-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