WHoleMag module

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

Bases: pyleecan.GUI.Dialog.DMachineSetup.SMHoleMag.WHoleMag.Ui_WHoleMag.Ui_WHoleMag, PySide2.QtWidgets.QWidget

Widget to Setup a single Hole in a list

saveNeeded = <PySide2.QtCore.Signal object>
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>