Metadata-Version: 2.4
Name: CTK_Color
Version: 0.0.2
Summary: A customizable color tool for CTkinter Textboxes
Home-page: https://github.com/vishal24102002/CTK_Color
Author: Vishal Sharma
Author-email: vishalsharma659615@gmail.com
License: MIT
Project-URL: Bug Tracker, https://github.com/vishal24102002/CTK_Color/issues
Project-URL: Documentation, https://github.com/vishal24102002/CTK_Color#readme
Project-URL: Source Code, https://github.com/vishal24102002/CTK_Color
Keywords: customtkinter ctkinter tkinter gui color textbox widget
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Education
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: customtkinter>=5.0.0
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: project-url
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# 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>
