ui.dialogs.regions package

Submodules

ui.dialogs.regions.add_region module

Dialog for adding region to interface.

class ui.dialogs.regions.add_region.AddRegionDlg(parent: QWidget = None, flags: Union[Qt.WindowFlags, Qt.WindowType] = Qt.WindowFlags())

Bases: QDialog

BACKGROUND_COLORS = [<PyQt5.QtGui.QColor object>, <PyQt5.QtGui.QColor object>, <PyQt5.QtGui.QColor object>, <PyQt5.QtGui.QColor object>, <PyQt5.QtGui.QColor object>, <PyQt5.QtGui.QColor object>, <PyQt5.QtGui.QColor object>, <PyQt5.QtGui.QColor object>, <PyQt5.QtGui.QColor object>, <PyQt5.QtGui.QColor object>, <PyQt5.QtGui.QColor object>, <PyQt5.QtGui.QColor object>]
REGION_DESCRIPTION = {RegionDim.none: 'Default (None)', RegionDim.point: 'Point (0D)', RegionDim.well: 'Edge (1D)', RegionDim.fracture: 'Face (2D)', RegionDim.bulk: 'Volume (3D)'}
REGION_DESCRIPTION_DIM = {RegionDim.none: 'None', RegionDim.point: '0D', RegionDim.well: '1D', RegionDim.fracture: '2D', RegionDim.bulk: '3D'}
REGION_DESCRIPTION_SHORT = {RegionDim.none: 'default', RegionDim.point: 'point', RegionDim.well: 'edge', RegionDim.fracture: 'face', RegionDim.bulk: 'volume'}
accept()

Accepts the form if region data is valid. :return: None

classmethod get_some_color(i)

Return firs collor accoding to index

is_unique_region_name(reg_name)

Return False in the case of colision with an existing region name.

reg_name_changed(reg_name)

Called when Region Line Edit is changed.

set_default_name(dim)

Set default name if it seems to be default name.

Module contents