CTK_Color
Introduction
The library that will be used with CustomTkinter for coloring/highlighting particular text/line in textbox. It can be used for various other options and for creating inovative projects using this library
Syntax for object creation
CTK_Color(text_box name,text,tag,Color to be applied)
Use-Case
This code contains demo.py file in which the code
For Highlighting particular sentence
It provide color to the text in textbox untill you press enter or specify the end of the sentence in the code
Code
from CTK_Color import CTK_Color
import customtkinter as ctk
win=ctk.CTk()
text=ctk.CTkTextbox(win)
text.pack()
CTK_Color(text,"box","big","red").for_line()
win.mainloop()
Pre-View
For Highlighting particular words in textbox
Code
from CTK_Color import CTK_Color
import customtkinter as ctk
win=ctk.CTk()
text=ctk.CTkTextbox(win)
text.pack()
CTK_Color(text,"for","bal","red").for_word()
CTK_Color(text,"print","edit","orange").for_word()
CTK_Color(text,"while","gang","blue").for_word()
CTK_Color(text,"boxer","baler","green").for_word()
win.mainloop()
Pre-View
Release files for CTK-Color 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ctk_color-0.0.2.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ctk_color-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.2 kB
Release files / ctk_color-0.0.2.tar.gz
| Download URL | ctk_color-0.0.2.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7277ec2961438c17ba34996e5711345ed2b219b3644ac6b51e5c2417638cf461
|
|
BLAKE2b-256 checksum How to use checksums |
1fdc52d9500f0cef827f42d7d44be084b4e16f5e0a2645b5cb527abe2d8110ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Release files / ctk_color-0.0.2-py3-none-any.whl
| Download URL | ctk_color-0.0.2-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2fd25dd10d834a7c01158e433d70f7e78cea087b892412035d4539c0c6fef031
|
|
BLAKE2b-256 checksum How to use checksums |
0de8fe313068dd39bde165bca616f22762b21173a6c0e89458ee142f68072e2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|