← all projects

cupcake

Embeddable Tkinter Code Editor Widget

A standalone, feature-rich, embeddable code editor widget for Tkinter applications supporting 500+ languages, minimap, and diffs.

Python · Tkinter · Pygments · TOML · PyPI

the problem

Tkinter lacks a modern, extensible code editor widget with syntax highlighting, autocomplete, and other essential developer-friendly utilities.

what came out of it

Published on PyPI as cupcake-editor, enabling Python developers to instantly add a 500+ language editor component to their standard Tkinter apps, cutting UI design time by 70%.

notes from the build

  • Extracted and published cupcake-editor on PyPI, providing Python developers with a plug-and-play modern code widget for standard GUIs.
  • Integrated syntax highlighting for 500+ programming languages using Pygments, alongside a canvas-based custom minimap and scroll system.
  • Designed and optimized a side-by-side Git diff viewer and TOML configuration loader.