Top-level GUI classes.
Executes a command-line program, shows its output, and allows input.
Clear the log window.
Draw the Executor in the given master widget.
Kill the currently-running command process.
Print a notification message to the Executor. Adds newlines and brackets.
Poll for process completion, and update the output window.
Save log window contents to a file.
Send text to the running program’s stdin.
Write a line of text to the end of the log. If the line contains \r, overwrite the current line.
Graphical frontend for a command-line program
Define a GUI application frontend for a command-line program.
- program
- Command-line program that the GUI is a frontend for
- panels
- One or more Panels, containing controls for the given program’s options
After defining the Application, call run() to show/execute it.
Draw the Application in the given master.
Draw a toolbar at the bottom of the application.
Run the program with all the supplied options.
Get a list of all command-line arguments from all panels.
Load settings from a list of command-line arguments.
Prompt for script filename; reload gui with current Control settings
Prompt for a script filename, then save the current command to that file.
Reset all controls back to their defaults.
Save current command to script and exit, without prompt
Save the current command as a bash script.
Load application settings from a list of command-line arguments. The list of args is modified in-place; if all args are successfully parsed and loaded, the list will be empty when this method returns.
Set script filename. Called externally, this sets the variable that used used for save_exit() as well as the ‘initial file’ for prompt_save_script().
GUI with one or more Applications
Create a GUI for the given application.
- title
- Text shown in the title bar
- width
- Initial width of GUI window in pixels
- height
- Initial height of GUI window in pixels
- application
- Application to show in the GUI
Keywords arguments accepted:
- inifile
- Name of an .ini-formatted file with GUI configuration
- icon
- Full path to an image to use as the titlebar icon
- position
- position on screen: ‘+X+Y’
Exit the GUI, with confirmation prompt.
Draw widgets.
Run the GUI and enter the main event handler. This function does not return until the GUI is closed. args: arguments to the programe being run script: a filename to save the GUI command output to
Open the GUI configuration dialog.