DMatLib module

class DMatLib(matlib=[], selected=0)[source]

Bases: pyleecan.GUI.Dialog.DMatLib.Gen_DMatLib.Gen_DMatLib, PyQt5.QtWidgets.QDialog

Material Library Dialog to view and modify material data.

load()[source]

Load the material library

Parameters:self – A DMatLib object
edit_material(item=None)[source]

Open the setup material GUI to edit the current material. Changes will be saved to the corresponding material file.

Parameters:
  • self – A DMatLib object
  • item – (Default value = None)
new_material()[source]

Open the setup material GUI to create a new material according to the current material

Parameters:self – A DMatLib object
delete_material()[source]

Delete the selected material

Parameters:self – A DMatLib object
filter_material(index=None)[source]
Parameters:index – (Default value = None)
update_mat_list()[source]

Update the list of Material with the current content of MatLib

Parameters:self – A DMatLib object
update_out(index=0)[source]

Update all the output widget for material preview

Parameters:
  • self – A DMatLib object
  • index – Current index of nav_mat (Default value = 0)
update_text(label, name, value, unit)[source]

Update a Qlabel with the value if not None

Parameters:
  • label – Qlabel to update
  • name – Name of the variable
  • value – Current value of the variable (can be None)
  • unit – Variable unit (can be None)