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 Distribution

ttk_text-0.3.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

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

ttk_text-0.3.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file ttk_text-0.3.0.tar.gz.

File metadata

  • Download URL: ttk_text-0.3.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","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

Hashes for ttk_text-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6e2bc3706c395c93694531717b108b51f3f7b2fac4e19ddef697d6854b1b37c3
MD5 501d35a6c0476995e54f69e0f367dd6e
BLAKE2b-256 d9d5db8584883dc791eaa03ab8ad6d586b9c48ed161761ccd8d89a62511540f0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ttk_text-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","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

Hashes for ttk_text-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e7fee74bfd28dd0eba8474918cd74d2391ead9f482564ddf0142a0655eae5233
MD5 7050039ab8c002afe70bce1a855bde1c
BLAKE2b-256 15b8b7a33300fc5758b303d5b8e6f4bb827d56030f8b1b8332e2033c8fef0a32

See more details on using hashes here.

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