Skip to content

Commit

Permalink
FIX - add a post_init function to handle properly the spice combo box…
Browse files Browse the repository at this point in the history
… text
  • Loading branch information
mroncera committed May 3, 2024
1 parent 8641bd9 commit 74183b1
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/view/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 74183b1

Please sign in to comment.