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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file CustomtkinterCodeViewer-0.0.3.tar.gz.
File metadata
- Download URL: CustomtkinterCodeViewer-0.0.3.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
117fbf7a3f8239dc1c74f9723e1ec4979c35334a807060af1a7e8e29bfef7ca1
|
|
| MD5 |
effc2c660183f00cd197912125b66c38
|
|
| BLAKE2b-256 |
1d68880426823cd3606a54ba5bff3b12b37e31978464e68ae7553f64cc887701
|
File details
Details for the file CustomtkinterCodeViewer-0.0.3-py3-none-any.whl.
File metadata
- Download URL: CustomtkinterCodeViewer-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57eccd11b370d04a230ae88d88bae82f71762798ef7ca9744b4b5651d12cffd4
|
|
| MD5 |
b3d199f1759dc67968e2978ed71432d7
|
|
| BLAKE2b-256 |
51619d98232d09cb1e6f9d773d96f0e3a864f308a92588cc9f5aa773a21be3b5
|