Skip to content

Commit

Permalink
FEM: py code formating
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach committed Feb 4, 2020
1 parent efff32c commit c5bc172
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Mod/Fem/femguiobjects/_ViewProviderFemMaterial.py
Expand Up @@ -203,9 +203,9 @@ def __init__(self, obj):

# get all available materials (fill self.materials, self.cards and self.icons)
from materialtools.cardutils import import_materials as getmats
# Note: import_materials(category="Solid", ...),
# Note: import_materials(category="Solid", ...),
# category default to Solid, but must be given for FluidMaterial to be imported
self.materials, self.cards, self.icons = getmats(self.obj.Category )
self.materials, self.cards, self.icons = getmats(self.obj.Category)
# fill the material comboboxes with material cards
self.add_cards_to_combo_box()

Expand Down
Expand Up @@ -565,7 +565,9 @@ def show_displacement(self, checked):
QtGui.QApplication.restoreOverrideCursor()

def hsb_disp_factor_changed(self, value):
self.form.sb_displacement_factor.setValue(value / 100. * self.form.sb_displacement_factor_max.value())
self.form.sb_displacement_factor.setValue(
value / 100. * self.form.sb_displacement_factor_max.value()
)
self.update_displacement()

def sb_disp_factor_max_changed(self, value):
Expand Down

0 comments on commit c5bc172

Please sign in to comment.