FEM: Replace spinBox_young_modulus with input_fd_young_modulus
spinBox_young_modulus variable is not Gui::SpinBox, but Gui::InputField Signed-off-by: Przemo Firszt <przemo@firszt.eu>
This commit is contained in:
parent
56bf10afef
commit
18aad09d0d
|
@ -148,7 +148,7 @@ class _MechanicalMaterialTaskPanel:
|
|||
|
||||
matmap = self.obj.Material
|
||||
|
||||
matmap['Mechanical_youngsmodulus'] = self.form.spinBox_young_modulus.text()
|
||||
matmap['Mechanical_youngsmodulus'] = self.form.input_fd_young_modulus.text()
|
||||
matmap['FEM_poissonratio'] = str(self.form.spinBox_poisson_ratio.value())
|
||||
print self.form.comboBox_MaterialsInDir.currentText()
|
||||
|
||||
|
@ -161,7 +161,7 @@ class _MechanicalMaterialTaskPanel:
|
|||
|
||||
if 'Mechanical_youngsmodulus' in matmap:
|
||||
#print matmap['Mechanical_youngsmodulus']
|
||||
self.form.spinBox_young_modulus.setText(matmap['Mechanical_youngsmodulus'])
|
||||
self.form.input_fd_young_modulus.setText(matmap['Mechanical_youngsmodulus'])
|
||||
if 'FEM_poissonratio' in matmap:
|
||||
#print float(matmap['FEM_poissonratio'])
|
||||
self.form.spinBox_poisson_ratio.setValue(float(matmap['FEM_poissonratio']))
|
||||
|
@ -177,7 +177,7 @@ class _MechanicalMaterialTaskPanel:
|
|||
|
||||
def update(self):
|
||||
'fills the widgets'
|
||||
#self.form.spinBox_young_modulus.setValue(0.0)
|
||||
#self.form.input_fd_young_modulus.setValue(0.0)
|
||||
#self.form.spinBox_poisson_ratio.setValue(0.0)
|
||||
self.transferFrom()
|
||||
self.fillMaterialCombo()
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="Gui::InputField" name="spinBox_young_modulus">
|
||||
<widget class="Gui::InputField" name="input_fd_young_modulus">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
|
|
Loading…
Reference in New Issue
Block a user