geosoft.gxpy.gx

GX Context and related methods required for Geosoft Python.

Classes:
GXpy:

the Geosoft GX context

The GX context is a singleton, which is either created for stand-alone Python scripts, or is provided to the script for extensions to Geosoft Desktop applications.

Note

Regression tests provide usage examples: gx tests

Functions

GXpy([name, version, parent_window, log, ...])

Instantiate a Geosoft GX context. There should be only one instance of this created per thread.

_get_gx_instance()

_get_tls_globals()

_have_gx()

_log_file_error(fnc, path, excinfo)

_reset_tls_globals()

_t(s)

gx()

Returns the current thread GXpy instance.

pop_resource(res_id)

Pop a tracked resource off the resource stack.

track_resource(resource_class, info)

Track a resource.

Classes

GXpyContext([name, version, parent_window, ...])

Geosoft GX context.

TLSGlobals()

Exceptions

GXException(message)

Exceptions from geosoft.gxpy.gx.