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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47a60b9e3b9bd524a064f7a9a3052971615586cb1596f0f54aec5afb65f5cc26 |
|
MD5 | 044e1949e8fcf928bf24258356e9fb1c |
|
BLAKE2b-256 | e7d0d6a93222531681258f1b48eef534bc818432d1082a54cce2e47496a96c6d |
Close
Hashes for CustomtkinterCodeViewer-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33d242a5f70ef6a142251d7b60dfc1d1afa2c1ec48c97e29b498421899dd405c |
|
MD5 | f61999bfd46b563b1eabbaefd3140383 |
|
BLAKE2b-256 | 0f4f43f73df4940b81df442e8b73a0716bd1aa444616c0c0ebac76d7af7e232f |