LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-11-2021, 09:37 PM   #1
pisti
Member
 
Registered: Jul 2006
Location: Montréal, Canada
Distribution: Slackware
Posts: 258

Rep: Reputation: 33
looking for a python-based TUI (text-based user interface)


i need for a routine application some form of a TUI (text-based user interface) which will then be used by other users as well. the interface does not need to be crazy sophisticated though a dozen or so elements for text display and text input will be necessary. years ago i remember having seen in stores those kind of DOS based terminals for database access or cash registers with simple colored interfaces : something similar i envision for this project.

our underlying software and API is written in python so it would convenient if the TUI software uses the same language. furthermore the TUI should be compatible with TMUX windows and panes. and it should be well supported as it will be used in a long-term project.

in the GUI world i would imagine using something like tkinter but in terms of TUIs i found dialogue-based and ncurses-based software, and then also new independent languages such as picotui. what options are there out for us ? what are the pros and cons for the various options ?
 
Old 08-12-2021, 01:50 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
Quote:
Originally Posted by pisti View Post
in the GUI world i would imagine using something like tkinter but in terms of TUIs i found dialogue-based and ncurses-based software, and then also new independent languages such as picotui. what options are there out for us ? what are the pros and cons for the various options ?
Looks like you found the answer: there are dialogue-based and ncurses-based software (and others).
And you need to know which one is [more] suitable for you, for your environment and existing code.
Anyway, I would try to implement a prototype or a python module (or something similar) - using different base - to see how do they fit...

Just an example (this looks quite simple - at least for me): https://docs.python.org/3/howto/curses.html

Last edited by pan64; 08-12-2021 at 01:52 AM.
 
1 members found this post helpful.
Old 08-12-2021, 01:54 PM   #3
pisti
Member
 
Registered: Jul 2006
Location: Montréal, Canada
Distribution: Slackware
Posts: 258

Original Poster
Rep: Reputation: 33
thank you, pan64, köszönöm - thinking a bit harder about this project (remotely manipulating data & database via vpn/ssh) i think we will go with pythondialog. for our simple needs it will do it while ncurses and alike may be an overkill. thank you for feedback !
 
Old 08-13-2021, 02:01 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
you are welcome. Yes, pythondialog is ok (as long as you do not need more features).
If you think your problem is solved please mark the thread solved.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple terminal based desktop (TUI, Vision) Xeratul Programming 5 04-08-2017 01:20 AM
authconfig-tui and how to set up user home directory automatic creation upon first lo v4r3l0v Linux - Enterprise 1 07-05-2015 10:08 PM
Backup applications with TUI (text-user interface) raphaelmsx Linux - Software 3 10-28-2011 03:38 AM
TUI - text user interface fachamix Programming 4 12-20-2009 11:59 AM
Searching for a Text User Interface (tui) package manager (like aptitude) for F7 mhtrinh Fedora 2 09-30-2007 10:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration