PicoEdit, a Python code editor for LuckFox-Lyra-B

Hi everyone,

I wanted to share a small tool I have been working on for the PicoCalc: PicoEdit, a compact Python code editor designed specifically for very small terminal screens.

The idea behind PicoEdit is simple: provide a lightweight, self-contained editor that makes it comfortable to write, edit, save, and run Python scripts directly on the PicoCalc, without needing a full desktop environment or a large editor.

It is written as a single Python file, uses only the standard library and curses, and is designed around a compact terminal layout of about 53 columns by 26 rows, using a 12×6 pixel font.

Some current features:

  • Python syntax highlighting

  • Simple top menu: File, Edit, Search, Run, Help

  • Internal file browser for .py files

  • Save / Save as

  • Undo / Redo with 10 levels

  • Copy, cut, paste, and duplicate lines

  • Find / Find next

  • Run the current Python script from inside the editor

  • Basic Python auto-indentation

  • Simple retro-style terminal interface

This is not meant to replace Vim, Nano, or full desktop editors. The goal is much more modest: a practical editor that feels usable on the PicoCalc screen and keyboard, especially for quick Python experiments.

You can find the project here:

Feedback, ideas, and suggestions are very welcome.

2 Likes

I’d try it, but that would require installing a LuckFox Lyra in my PicoCalc, which I am avoiding opening it up (I’m still on BIOS 1.2 because upgrading to BIOS 1.6 would require opening it up) to avoid the risk of screen damage.

1 Like

Hi!

Yes, I understand the fear of breaking the screen. It is very fragile. I managed to replace it without any problems.

In any case, this application runs in any environment with Python + Ncurses, including a Linux PC — and possibly Windows — or a Luckfox Lyra that is NOT PHYSICALLY INSTALLED IN A PICOCALC. In fact, you could use it via ADB, with a USB cable, and see the output in the PC terminal.

Obviously… I don’t think it’s worth the effort! :slight_smile: