Display syntax highlighted code in customtkinter
Project description
CustomTkinter CodeViewer
This is a package for displaying code with syntax highlighting in a customtkinter application
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
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
Close
Hashes for CustomtkinterCodeViewer-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdd2dc99b747b641714bee53b616fa6d36f93487b93a6c5ecfd54a36f866a4dd |
|
MD5 | 4a2cfd6f0d2164b364ec2f6f84483ab7 |
|
BLAKE2b-256 | d3a6e25d35ebc5e8d4de9f5cd414ffb9bed42472ca771b4d400adcdd46d733df |
Close
Hashes for CustomtkinterCodeViewer-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28e07f7455ac1e14bf2e8a7d5359cc6dffa671d31439964a50f9fd1ebf843f1c |
|
MD5 | 065d8b49ec814487cbc7441730d8230c |
|
BLAKE2b-256 | 71dac6b7fd9ddbe17960a0c44ada5b7ba2810dab87e71c9229961ff22862cefa |