Skip to content

The library that will be used with CustomTkinter for coloring text in Textbox Widget in just 3 simple lines.

License

Notifications You must be signed in to change notification settings

vishal24102002/CTK_Color

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CTK_Color

PyPI Python Versions License Status

Introduction

CTK_Color

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 where the the user input text is needed to be highlighted in order to let user know.

Installation

pip install CTK-Color

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

About

The library that will be used with CustomTkinter for coloring text in Textbox Widget in just 3 simple lines.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages