With EasyGUI, I Can Stick with Python
For all of recent history, I have used dialog for basic interaction with users. Dialog is a program callable from the shell that produces an assortment of not pretty but functional interaction boxes. Anyone who has installed Debian or any of its derivatives knows what they look like.
On the other end of the spectrum is QT, the GUI builder behind KDE. It is pretty, elegant, adaptable and, well, something that requires you to write (or generate) C++ code.
While Python tends to be my language of choice, it has always been a pain for tasks I have done with dialog and shell scripts. The reason is that the standard Python tools for doing GUIs do more than I generally want. Tkinter is a good example. It will do what I want but it requires writing an event-driven program and knowing more about Tk than I really want to know. Well, enter EasyGui. If you are familiar with using dialog, the best description of EasyGui is that it is dialog except it is activated by Python calls rather than shell commands. For the rest of you, this is from the EasyGui web page.
EasyGui provides an easy-to-use interface for simple GUI interaction with a user. It does not require the programmer to know anything about tkinter, frames, widgets, callbacks or lambda. All GUI interactions are invoked by simple function calls that return results.
I was going to write some of the typical stuff like how to write Hello World using EasyGui but this stuff is all pretty obvious. It is, well, easy. Where to use EasyGui, however, is worth mentioning.
In the past few years I have written web applications to perform a task because it is relatively easy to put together a form for user input and produce decent-looking user output. In many cases, however, I had no need for the web interface—the application was running locally. While the application was easy to write, the need for a web server and telling the user that they needed to use a browser to run the program was an unnecessary complication. EasyGui seems to be the perfect "right way" to write these types of applications.
Fast/Flexible Linux OS Recovery
On Demand Now
In this live one-hour webinar, learn how to enhance your existing backup strategies for complete disaster recovery preparedness using Storix System Backup Administrator (SBAdmin), a highly flexible full-system recovery solution for UNIX and Linux systems.
Join Linux Journal's Shawn Powers and David Huffman, President/CEO, Storix, Inc.
Free to Linux Journal readers.Register Now!
- Google's Abacus Project: It's All about Trust
- Download "Linux Management with Red Hat Satellite: Measuring Business Impact and ROI"
- Seeing Red and Getting Sleep
- Back to Backups
- Secure Desktops with Qubes: Introduction
- Fancy Tricks for Changing Numeric Base
- Working with Command Arguments
- Secure Desktops with Qubes: Installation
- Linux Mint 18
- CentOS 6.8 Released
Until recently, IBM’s Power Platform was looked upon as being the system that hosted IBM’s flavor of UNIX and proprietary operating system called IBM i. These servers often are found in medium-size businesses running ERP, CRM and financials for on-premise customers. By enabling the Power platform to run the Linux OS, IBM now has positioned Power to be the platform of choice for those already running Linux that are facing scalability issues, especially customers looking at analytics, big data or cloud computing.
￼Running Linux on IBM’s Power hardware offers some obvious benefits, including improved processing speed and memory bandwidth, inherent security, and simpler deployment and management. But if you look beyond the impressive architecture, you’ll also find an open ecosystem that has given rise to a strong, innovative community, as well as an inventory of system and network management applications that really help leverage the benefits offered by running Linux on Power.Get the Guide