Skip to content

Commit

Permalink
FEM: Rename chooseMat to choose_material
Browse files Browse the repository at this point in the history
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
  • Loading branch information
PrzemoF authored and wwmayer committed Apr 17, 2015
1 parent 3066e6b commit b6ea746
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Mod/Fem/MechanicalMaterial.py
Expand Up @@ -130,7 +130,7 @@ def __init__(self, obj):
self.form = FreeCADGui.PySideUic.loadUi(FreeCAD.getHomePath() + "Mod/Fem/MechanicalMaterial.ui")

QtCore.QObject.connect(self.form.pushButton_MatWeb, QtCore.SIGNAL("clicked()"), self.goMatWeb)
QtCore.QObject.connect(self.form.cb_materials, QtCore.SIGNAL("activated(int)"), self.chooseMat)
QtCore.QObject.connect(self.form.cb_materials, QtCore.SIGNAL("activated(int)"), self.choose_material)
QtCore.QObject.connect(self.form.input_fd_young_modulus, QtCore.SIGNAL("valueChanged(double)"), self.ym_changed)
QtCore.QObject.connect(self.form.spinBox_poisson_ratio, QtCore.SIGNAL("valueChanged(double)"), self.pr_changed)
self.previous_material = self.obj.Material
Expand All @@ -144,10 +144,10 @@ def __init__(self, obj):
index = self.form.cb_materials.findData(material_name)
else:
index = self.form.cb_materials.findText(material_name)
self.chooseMat(index)
self.choose_material(index)
else:
index = self.form.cb_materials.findData(previous_mat_path)
self.chooseMat(index)
self.choose_material(index)

def get_material_name(self, material):
if 'General_name' in self.previous_material:
Expand Down Expand Up @@ -213,7 +213,7 @@ def pr_changed(self, value):
material['FEM_poissonratio'] = unicode(value)
self.obj.Material = material

def chooseMat(self, index):
def choose_material(self, index):
if index < 0:
return
mat_file_path = self.form.cb_materials.itemData(index)
Expand Down

0 comments on commit b6ea746

Please sign in to comment.