Skip to content

Commit

Permalink
disable Inductance Value for a transformer case
Browse files Browse the repository at this point in the history
  • Loading branch information
abujazar committed May 2, 2024
1 parent bf0e37b commit d5c2da2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions gui/femmt_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1992,10 +1992,14 @@ def md_change_simulation_type(self, simulation_type_from_combo_box: str) -> None
"""
if simulation_type_from_combo_box == self.translation_dict['inductor']:
self.md_winding2_enable(False)
# enable Inductance Value for an Inductor case
self.groupBox_7.setVisible(True)

elif simulation_type_from_combo_box == self.translation_dict['transformer']:
# set winding definitions of winding 2 to editable
self.md_winding2_enable(True)
# disable Inductance Value for a transformer case
self.groupBox_7.setVisible(False)

elif simulation_type_from_combo_box == self.translation_dict['integrated transformer']:
# set winding definitions of winding 2 to editable
Expand Down
4 changes: 2 additions & 2 deletions gui/femmt_gui.ui
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
</size>
</property>
<property name="currentIndex">
<number>2</number>
<number>0</number>
</property>
<widget class="QWidget" name="md_QWidget">
<attribute name="title">
Expand Down Expand Up @@ -813,7 +813,7 @@
<item>
<widget class="QGroupBox" name="groupBox_19">
<property name="title">
<string>Core Isolation (Bobbin)</string>
<string>Core Insulation (Bobbin)</string>
</property>
<layout class="QGridLayout" name="gridLayout_23">
<item row="1" column="1">
Expand Down

0 comments on commit d5c2da2

Please sign in to comment.