FEM: Show material description below combo box

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
This commit is contained in:
Przemo Firszt 2015-04-10 15:25:58 +01:00 committed by wmayer
parent 97f5f76433
commit 343225dcc2
2 changed files with 14 additions and 0 deletions

View File

@ -188,6 +188,10 @@ class _MechanicalMaterialTaskPanel:
self.obj.Material = Material.importFCMat(str(name))
self.form.comboBox_MaterialsInDir.setCurrentIndex(index)
self.set_mat_params_in_combo_box(self.obj.Material)
gen_mat_desc = ""
if 'General_description' in self.obj.Material:
gen_mat_desc = self.obj.Material['General_description']
self.form.l_mat_description.setText(gen_mat_desc)
self.print_mat_data(self.obj.Material)
def add_mat_dir(self, mat_dir, icon):

View File

@ -117,6 +117,16 @@
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="l_mat_description">
<property name="text">
<string>Material Description</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
<customwidgets>