# sec_interp.gui.ui.pages.base_page module

Base class for configuration pages.

class sec_interp.gui.ui.pages.base_page.BasePage(*args: Any, **kwargs: Any)

  Bases: `QWidget`

  Abstract base class for configuration pages.

  Each page manages a specific set of parameters (e.g., DEM, Section, Geology).

  Initialize the page.

  Parameters:

    - title (str) – Title for the group box.

    - parent (QWidget) – Parent widget.

  __init__(title: str, parent=None)

    Initialize the page.

    Parameters:

      - title (str) – Title for the group box.

      - parent (QWidget) – Parent widget.

  get_data() → dict

    Get the current configuration data from the page.

    Returns:

      Dictionary with parameter names and values.

    Return type:

      dict

  validate() → tuple[bool, str]

    Validate the current configuration.

    Returns:

      (is_valid, error_message)

    Return type:

      tuple[bool, str]