Settings

Theme

Urwid - Console user interface library for Python

urwid.org

24 points by bminusl 5 years ago · 6 comments

Reader

dimator 5 years ago

I was looking for python TUI libraries recently. I got turned off this one due to the dependencies.

A simpler model is available with https://jwlodek.github.io/py_cui-docs/

  • mjsir911 5 years ago

    The long list of optional dependencies listed on the page?

    If I'm understanding correctly, these just provide additional niceties and is fully usable without them.

leloctai 5 years ago

I never get these libraries. If you want a GUI, why not just use a real GUI library? Are these simpler to use? Is there an example of TUI that shouldn't be replaced with proper GUI or normal CLI?

Edit: Now that I think about it, a good example of TUI would be htop.

  • nvrspyx 5 years ago

    Remote SSH is one reason. Another reason is that TUIs are generally easier to create and maintain than GUIs, especially cross-platform.

  • Galanwe 5 years ago

    I feel like there's a _spectrum_ of pros/cons in running a GUI versus pure command line.

    Command line is the most practical for me, since I spend 99.9% of my time there, and I rarely have an X session anyway on remote server.

    Sometimes, I have a need for something more graphical say to look at a git graph. Spawning an X session and running a full blown GUI would be possible but it's too much hassle for that use case IMHO. TUI is a nice in-between.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection