From 18aad09d0d2cffbd533429994d1c40b42ed8c8aa Mon Sep 17 00:00:00 2001 From: Przemo Firszt Date: Thu, 2 Apr 2015 23:30:10 +0100 Subject: [PATCH] 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 --- src/Mod/Fem/MechanicalMaterial.py | 6 +++--- src/Mod/Fem/MechanicalMaterial.ui | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Mod/Fem/MechanicalMaterial.py b/src/Mod/Fem/MechanicalMaterial.py index 8ed57fc80..f1f02607b 100644 --- a/src/Mod/Fem/MechanicalMaterial.py +++ b/src/Mod/Fem/MechanicalMaterial.py @@ -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() diff --git a/src/Mod/Fem/MechanicalMaterial.ui b/src/Mod/Fem/MechanicalMaterial.ui index 48cebddb5..9ecedf593 100644 --- a/src/Mod/Fem/MechanicalMaterial.ui +++ b/src/Mod/Fem/MechanicalMaterial.ui @@ -44,7 +44,7 @@ - + 0