grains.salome.GUI

class grains.salome.GUI[source]

Using GUI-related functionalities in Salome.

Notes

A part of Salome’s GUI is exposed to Python. To get an idea of what is available, see https://docs.salome-platform.org/latest/gui/GUI/text_user_interface.html

__init__()

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__

Initialize self.

assert_salome_desktop()

Checks if Salome’s GUI is available, and raises an exception if it is not.

has_desktop()

Indicates if the Salome GUI is running.

show(obj[, show_only])

Shows objects in Salome’s GUI.

update_object_browser()

Refreshes Salome’s object browser.

view([view])

Sets the viewpoint.

Attributes

component_map