semvec/pypi-packages huggingface dataset:
CTk-Color 0.0.1
A customizable color tool for CTkinter Textboxes
License: MIT
Requires Python: >=3.7
Keywords: customtkinter ctkinter tkinter gui color textbox widget

# 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
<p align="center"><pre><code>CTK_Color(text_box name,text,tag,Color to be applied)</code></pre></p>

## Use-Case
This code contains <code>demo.py</code> 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
<pre lang="sh">
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>

#### Pre-View 
<p align="center">
<img src="https://github.com/user-attachments/assets/371899cf-61e5-414b-81ee-1f68d26afd60" width=750/>
</p>

### For Highlighting particular words in textbox

#### Code
<pre lang="sh">
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>

#### Pre-View
<p align="center">
<img src="https://github.com/user-attachments/assets/c0b27e21-c605-45c5-82fb-9a67ca66ca57" width=750/>
</p>