Sujet : Re: Tools to help with text mode (i.e. non-GUI) input
De : cl (at) *nospam* isbd.net (Chris Green)
Groupes : comp.lang.pythonDate : 14. Jan 2025, 10:15:01
Autres entêtes
Message-ID : <lhmh5l-rhnv.ln1@q957.zbmc.eu>
References : 1 2 3 4 5
User-Agent : tin/2.6.2-20221225 ("Pittyvaich") (Linux/6.1.0-28-amd64 (x86_64))
Alan Gauld <
learn2program@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@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·