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
Built Distribution
Hashes for cupcake_editor-0.5.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8567e7b4d458db80aeca22e220c05f9cd3350065f04d2ee6eff169ea2595043 |
|
MD5 | a3a4ff7ad4ea10052e86eb573244f818 |
|
BLAKE2b-256 | 88e63430f7d8886602d9ae689f6b6e5e7cb6b81b8fe757b7bfd0909c5076ef5b |