Line data Source code
1 : # SPDX-FileCopyrightText: 2025 Pairinteraction Developers 2 : # SPDX-License-Identifier: LGPL-3.0-or-later 3 : 4 1 : from typing import TYPE_CHECKING 5 : 6 1 : from pairinteraction_gui.qobjects import WidgetV 7 : 8 : if TYPE_CHECKING: 9 : from pairinteraction_gui.page import SimulationPage 10 : 11 : 12 1 : class BaseConfig(WidgetV): 13 : """Base class for configurations.""" 14 : 15 1 : title: str 16 : 17 1 : def __init__(self, parent: "SimulationPage") -> None: 18 : """Initialize the base section.""" 19 1 : self.page = parent 20 1 : super().__init__(parent) 21 : 22 1 : def postSetupWidget(self) -> None: 23 1 : self.layout().addStretch(1)