Tkinker Logger
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 tkinter_colored_logging_handlers-0.0.4.tar.gz.
File metadata
- Download URL: tkinter_colored_logging_handlers-0.0.4.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e15cecadfcb297f28de0bc055e14032d9bd7087e914c2afaa86eeea8238bd622
|
|
| MD5 |
ee8052f8f4f3645787efdf4b24a94ac6
|
|
| BLAKE2b-256 |
fc1d831cd6d55c48789463fc7c40019c1fa416e162bc47bd6be4a236fbfc4dd7
|
File details
Details for the file tkinter_colored_logging_handlers-0.0.4-py3-none-any.whl.
File metadata
- Download URL: tkinter_colored_logging_handlers-0.0.4-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a3e10ff9b48d47bacf0f1ecb3a4a70cf47ba84ca058ca9bb2963494f9c28733
|
|
| MD5 |
c6abf4cf7788d6deb230ec81d81a7080
|
|
| BLAKE2b-256 |
e4f2ecd1b694a764cfa695a1560222b9a9c1559934146c2ca2895fc65cd9f17d
|