A customizable color tool for CTkinter Textboxes
Project description
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
Project details
Release history Release notifications | RSS feed
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 ctk_color-0.0.2.tar.gz.
File metadata
- Download URL: ctk_color-0.0.2.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7277ec2961438c17ba34996e5711345ed2b219b3644ac6b51e5c2417638cf461
|
|
| MD5 |
a79d21295436517b47be62d3044eb567
|
|
| BLAKE2b-256 |
1fdc52d9500f0cef827f42d7d44be084b4e16f5e0a2645b5cb527abe2d8110ed
|
File details
Details for the file ctk_color-0.0.2-py3-none-any.whl.
File metadata
- Download URL: ctk_color-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fd25dd10d834a7c01158e433d70f7e78cea087b892412035d4539c0c6fef031
|
|
| MD5 |
c2bdbde1c4ab012d490252edb778579d
|
|
| BLAKE2b-256 |
0de8fe313068dd39bde165bca616f22762b21173a6c0e89458ee142f68072e2f
|