tkinter_colored_logging_handlers
A Tkinter logging handler that supports ANSI colored output.
Installation
pip install tkinter_colored_logging_handlers
Usage
from tkinter_colored_logging_handlers import LoggingHandler
import logging
from tkinter import Tk, Text
root = Tk()
text_widget = Text(root)
text_widget.pack()
logger = logging.getLogger(__name__)
handler = LoggingHandler(text_widget)
logger.addHandler(handler)
logger.setLevel(logging.DEBUG)
logger.info("This is a test message")
root.mainloop()
Development
Running Tests
pip install pytest
pytest tests/
License
MIT
Metadata
Release files for tkinter-colored-logging-handlers 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tkinter_colored_logging_handlers-0.0.4.tar.gz | 4.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tkinter_colored_logging_handlers-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.8 kB
Release files / tkinter_colored_logging_handlers-0.0.4.tar.gz
| Download URL | tkinter_colored_logging_handlers-0.0.4.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e15cecadfcb297f28de0bc055e14032d9bd7087e914c2afaa86eeea8238bd622
|
|
BLAKE2b-256 checksum How to use checksums |
fc1d831cd6d55c48789463fc7c40019c1fa416e162bc47bd6be4a236fbfc4dd7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Release files / tkinter_colored_logging_handlers-0.0.4-py3-none-any.whl
| Download URL | tkinter_colored_logging_handlers-0.0.4-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7a3e10ff9b48d47bacf0f1ecb3a4a70cf47ba84ca058ca9bb2963494f9c28733
|
|
BLAKE2b-256 checksum How to use checksums |
e4f2ecd1b694a764cfa695a1560222b9a9c1559934146c2ca2895fc65cd9f17d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|