Common layouts and architecture for providing the command line server with a basic GUI in Ubuntu / Quckly?

A few years ago, I wrote a python command line utility for a local community radio. The purpose of this work was to enhance the radio stream with metadata obtained from Google Calendar. This meant that anyone who listens to the radio in the stream will be able to read the stream of relevant information about what is currently playing, and how many minutes will be until the next launch.

Basically this script worked very well and provided good service for many years.

Recently, a new requirement has come to me: users of this application can sometimes stop, start or restart the process (for example, because the schedule information has changed). Instead of teaching each member of the studio how to use the command line, we thought to give this tool a simple graphical interface.

Since the application will be developed and launched only on Ubuntu, we quickly chose it as a simple development framework. It is well documented and provides a low burden on developers familiar with the platform.

We hope that the initial design of the application will consist of a toolbar similar to the browser (start, stop, restart). A large panel containing a scroll status message. Below is a small status bar that will give some idea of ​​the current internal state of the program.

Being completely new to GUI programming, I'm still not sure how to structure the interface: the main secrets remain:

  • , . , , . Python, , ?

  • script , time.sleep(), , GUI, - ?

  • . , , , , , GUI . , Quickly?

  • - , , Ubuntu? , Linux. - , OSX Windows?

!

+5
1
  • GtkTextView, . , pipe-it .
  • idle_add() ( Glib) / .
  • , pygtk.
  • PyGTK . PyGTK/PyGObject . .
+1

All Articles