diff --git a/src/view/gui.py b/src/view/gui.py index f0daac3..6f11d15 100644 --- a/src/view/gui.py +++ b/src/view/gui.py @@ -309,12 +309,16 @@ def __init__(self, config_dict=None): self.init_ui() self.init_menu() - index = self.spice_circuit_combo.findText(self.default_spice_circuit) - self.spice_circuit_combo.setCurrentIndex(index) - + self.update_spice_parameters_ui(0) self.showMaximized() + QTimer.singleShot(0, self.post_init_setup) + + def post_init_setup(self): + index = self.spice_circuit_combo.findText(self.default_spice_circuit) + self.spice_circuit_combo.setCurrentIndex(index) + def show_about_dialog(self): dialog = AboutDialog(self) dialog.exec() @@ -347,6 +351,8 @@ def init_parameters_input(self): continue section_widget = QWidget() section_layout = QGridLayout() + + section_widget.setLayout(section_layout) section_layout.setSpacing(10)