added stub simulation entry and logs
This commit is contained in:
22
BEdit/src/bedit/gui/dialogs/simulation_settings.py
Normal file
22
BEdit/src/bedit/gui/dialogs/simulation_settings.py
Normal file
@@ -0,0 +1,22 @@
|
||||
from copy import deepcopy
|
||||
|
||||
from PySide6.QtWidgets import QDialog
|
||||
|
||||
from bedit.gui.generated.ui_simulation_settings_dialog import Ui_SimulationSettingsDialog
|
||||
|
||||
|
||||
class SimulationSettingsDialog(QDialog):
|
||||
def __init__(self, settings: dict, parent=None) -> None:
|
||||
super().__init__(parent)
|
||||
self.ui = Ui_SimulationSettingsDialog()
|
||||
self.ui.setupUi(self)
|
||||
self._settings = deepcopy(settings)
|
||||
self.ui.placeholderCheckBox.setChecked(
|
||||
bool(self._settings.get("enabled", False))
|
||||
)
|
||||
|
||||
@property
|
||||
def settings(self) -> dict:
|
||||
values = deepcopy(self._settings)
|
||||
values["enabled"] = self.ui.placeholderCheckBox.isChecked()
|
||||
return values
|
||||
Reference in New Issue
Block a user