Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python Console UI Suggestions

I'm currently rewriting a perl console application that was using curses, and planning to implement it in Python. So far I've narrowed my library options to straight curses, urwid, and dialog.

The application is basically an installer for an appliance that will accommodate basic configuration (network options, hostname, etc). Are there any suggestions or advocates for one of these over the other? Any serious limitations with urwid or dialog?

like image 572
dkw22 Avatar asked Jan 24 '11 14:01

dkw22


People also ask

Is there a duplicate of console application GUI for Python?

Possible duplicate of console application gui for python – Peter Brittain Feb 17 '17 at 15:43 | Show 3more comments 2 Answers 2 ActiveOldestVotes 16 There is some libraries for that: curseswhich is python frontend to ncurses (tutorial) urwid(tutorial)

How to build a Python GUI application with pysimplegui?

If you’d like to learn more about wxPython, then check out How to Build a Python GUI Application With wxPython. PySimpleGUI uses nested Python lists to lay out its elements. In this case, you add a Text () element and a Button () element. Then you create the window and pass in your custom layout. The last block of code is the event loop.

How to build a command line interface in Python?

Basics in Command Line Interface with Python Now lets take a little peek at command line interface and building one in Python. A command-line interface (CLI) usually starts with the name of the executable. You just enter it’s name in the console and you access the main entry point of the script, an example is pip.

What is pysimplegui and how to use it?

You can use Python and the PySimpleGUI package to create nice-looking user interfaces that you and your users will enjoy! PySimpleGUI is a new Python GUI library that has been gaining a lot of interest recently. Now it’s time to get started!


2 Answers

urwid is a very complete UI interface and you can do almost everything. In fact, I'm developing an app using urwid. But, as Paulo Scardine said, dialog is a better choice for a wizard-like app.

like image 102
scripts Avatar answered Oct 17 '22 23:10

scripts


Dialog is very easy to use and a good choice for an installer using 'wizard-like' interface.

like image 2
Paulo Scardine Avatar answered Oct 17 '22 23:10

Paulo Scardine