DMatLib module

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

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

Material Library Dialog to view and modify material data.

saveNeeded = <PySide2.QtCore.Signal object>
load()[source]

Load the material library

Parameters

self – A DMatLib object

edit_material()[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

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_list_mat(selected_id=-1)[source]

Update the list of Material with the current content of MatLib

Parameters

self – A DMatLib object

update_out(on_matlib=True)[source]

Update all the output widget for material preview

Parameters
  • self – A DMatLib object

  • index – Current index of nav_mat (Default value = 0)

staticMetaObject = <PySide2.QtCore.QMetaObject object>
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)