Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ctk_color-0.0.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ctk_color-0.0.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file ctk_color-0.0.1.tar.gz.

File metadata

  • Download URL: ctk_color-0.0.1.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

Hashes for ctk_color-0.0.1.tar.gz
Algorithm Hash digest
SHA256 4ad086b8d58e7e9a2169c168b7b91214342ba11555d133f352d05390955c794b
MD5 e6db5d76b74d5ff626e1ee3237d396ff
BLAKE2b-256 89cf9f227d9af54636d9cc8056a3e4b9e3184ea8534d144afbce2bb8b1dc535c

See more details on using hashes here.

File details

Details for the file ctk_color-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: ctk_color-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for ctk_color-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 14580ea6c74da181e4eb03868e7b8be7acc0212135bcf51c68b3ee431c5a190e
MD5 cf4ee742009e083d69c2e5ce8de16c4c
BLAKE2b-256 fc081a1f73e1dd85ece9e4d158650c019b60ac9014e4a75e303ea4fb0931197b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page