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?
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)
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.
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.
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!
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.
Dialog is very easy to use and a good choice for an installer using 'wizard-like' interface.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With