Tools to help with text mode (i.e. non-GUI) input
Chris Green
cl at isbd.net
Tue Jan 14 04:15:01 EST 2025
Alan Gauld <learn2program at gmail.com> wrote:
> On 14/01/2025 00:20, Grant Edwards via Python-list wrote:
> > On 2025-01-13, Alan Gauld via Python-list <python-list at python.org> wrote:
> >
> >> All of that is possible in curses, you just have to code it.
> >
> > All of that is easy with curses in C. Unfortunately, the high level
> > "panel" and "menu" curses subystems that make it easy aren't included
> > in the Python curses API,
>
> panel is included. Just import curses.panel.
>
> menu unfortunately isn't but it's not difficult to roll
> your own by creating a window with a list of options, provided
> you don't try to get too fancy(submenus etc).
>
Yes, thanks all, maybe just straightforward curses is the way to go.
Looking at some of the 'cleverer' ones they end up looking remarkably
like GUI code, in which case I might as well use a GUI. I have written
a (fairly simple) Gtk based python program, I was just trying to avoid
all the GUI overheads for a little new project.
--
Chris Green
ยท
More information about the Python-list
mailing list