K
K
Keste ...2018-09-06 10:06:01
Python
Keste ..., 2018-09-06 10:06:01

What can be used to create a text-based user interface in Python?

How to create a TUI text interface:
For example, is there a simple yet very flexible implementation?
Or how to implement something like this yourself?
Output only what is needed:
For example, I use a subprocess and call a command, but I do not want it to be displayed in the terminal with all the consequences. And another example, I display multi-line data, but I want them to be erased and something remains.
How to clear the console of excess through Python?
How to implement geometry in terminal?
And how to make characters from characters:
For example, I want to create a timer and display numbers like in termdown.
And there is also a question:
There is a keyword in the line and after this word a value or parameters and how to compare them with if how to separate everything after the word except for spaces and check with if.
And if it's not difficult, you can find or write examples.
#I'm still new to Python
#I'm on Linux
#Python version 3.6
Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Cheremisin, 2018-09-06
@Keste

Here, urwid.org Made a
couple of interfaces on it, nothing like that. At the bottom of the page are links to similar libraries, but I think urwid is the best.
So, of course, curses/ncurses is traditional for Unixes.
PS. I found a tutorial - rus-linux.net/MyLDP/algol/urwid.html

G
gimntut, 2018-09-06
@gimntut

https://habr.com/post/352904/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question