pyleecan.GUI.Dialog.DMachineSetup.SMHoleMag.WHoleMag.WHoleMag module

class WHoleMag(parent, is_mag, index, material_dict)[source]

Bases: Ui_WHoleMag, QWidget

Widget to Setup a single Hole in a list

saveNeeded
emit_save()[source]

Send a saveNeeded signal to the DMachineSetup

set_hole_type(c_index)[source]

Initialize self.obj with the hole corresponding to index

Parameters:
  • self (WHoleMag) – A WHoleMag object

  • c_index (int) – Index of the selected hole type in the combobox

check()[source]

Check that the current machine have all the needed field set

Parameters:

self (WHoleMag) – A WHoleMag widget

Returns:

error – Error message (return None if no error)

Return type:

str

staticMetaObject = <PySide2.QtCore.QMetaObject object>