Module Gseos
Previous  Top  Next

The Gseos module implements several utility functions related to the GSEOS application. You should import Gseos whenever you need to access application specific services. The function help() which is implemented by this module is also directly available in the __main__ namespace. It displays this helpfile. Most of the functions also have a doc string which you can access with: Gseos.function.__doc__, where 'function' is the function you would like to get documentation for.

The FileMenu() function allows you to hook your own file types into the GSEOS file handling. The Log() and LogSave() functions are used to append text to a GSEOS log and to save the log file respectively. The MessageBox() and InputDialog() functions give you simple input dialog boxes. The function PumpWaitingMessages() has a special meaning: If you plan on performing time consuming computations in your scripts you will effectively block the GSEOS user interface. To keep the user interface responsive you should intersperse calls to PumpWaitingMessages() into your script. An alternative to this approach is using threads.

The Gseos module also provides functions to interact with the GSEOS User Interface like resizing and moving windows.

FileOpen() allows you to open any GSEOS file. systemRecorder module exposes the Python interface to the GSEOS Recorder functionality. The window functions WindowPrint(), WindowMinimize(), WindowMaximize(), WindowRestore(), and WindowClose() allow you to control some of the window behavior. StartApplication() lets you invoke external programs.