Skip to main content

Embeddable code editor for tkinter

Project description

Cupcake: Embeddable Code Editor

Cupcake is an Embeddable Modern Code editor for python tkinter applications. It comes with features such as Autocompletions, Minimap and Semantic Syntax highlighting. Cupcake is written in pure python with the tkinter library. It is the the code editor which powers Biscuit. See a good list of the code editor's features.

Installation

Cupcake can be installed by running:

pip install cupcake-editor

Cupcake requires Python 3.10+ to run.

Quick start

Here is a quick example of embedding cupcake in your project:

import tkinter as tk
from cupcake import Editor 

root = tk.Tk()
root.minsize(800, 600)

editor = Editor(root)
editor.pack(expand=1, fill=tk.BOTH)

root.mainloop()

Examples!

Examples demonstrating how to use cupcake are in the examples directory. You can learn how to integrate the editor to your app with these. You can run the examples like python -m examples.hello

Features

  • Syntax Highlighting
  • Auto completions
  • Auto Indentation
  • Minimap
  • Find Replace
  • Extendable language support
  • Code Debugging
  • Language Detection
  • Code Folding

Contributing

Thank you if you are considering to contribute to Cupcake. See contributing for further details such as coding guides and editing tools used.

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

cupcake-editor-0.5.1.tar.gz (56.5 kB view hashes)

Uploaded Source

Built Distribution

cupcake_editor-0.5.1-py3-none-any.whl (34.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page