Skip to content

This is a small package for displaying code with syntax highlighting in a customtkinter application

License

Notifications You must be signed in to change notification settings

rigvedmaanas/CustomTkinterCodeViewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CustomTkinter CodeViewer

Install via pypi

pip install CustomtkinterCodeViewer

This is a package for displaying code with syntax highlighting in a customtkinter application

CTkCodeViewer

Example

codeviewer = CTkCodeViewer(root, code=code, language="python", theme="monokai")

Arguments

Argument Value
root root, tkinter.Frame or CTkFrame
width textbox width in px
height textbox height in px
code code to display
allow_selecting allow users to select or not (True or False)
language the language given (default = "python"). This supports all the languages available in pygments
theme theme of the syntax highlighting (default = "monokai"). This supports all the themes available in pygments

Methods

  • .allstyles()

    returns all the available themes

Releases

No releases published

Packages

No packages published

Languages