Skip to main content

Display syntax highlighted code in customtkinter

Project description

CustomTkinter CodeViewer

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

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

CustomtkinterCodeViewer-0.0.3.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

CustomtkinterCodeViewer-0.0.3-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

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

Hashes for CustomtkinterCodeViewer-0.0.3.tar.gz
Algorithm Hash digest
SHA256 117fbf7a3f8239dc1c74f9723e1ec4979c35334a807060af1a7e8e29bfef7ca1
MD5 effc2c660183f00cd197912125b66c38
BLAKE2b-256 1d68880426823cd3606a54ba5bff3b12b37e31978464e68ae7553f64cc887701

See more details on using hashes here.

File details

Details for the file CustomtkinterCodeViewer-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for CustomtkinterCodeViewer-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 57eccd11b370d04a230ae88d88bae82f71762798ef7ca9744b4b5651d12cffd4
MD5 b3d199f1759dc67968e2978ed71432d7
BLAKE2b-256 51619d98232d09cb1e6f9d773d96f0e3a864f308a92588cc9f5aa773a21be3b5

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