pyleecan.GUI.Dialog.DMachineSetup.SMHoleMag.PHoleMUD.PHoleMUD module

class PHoleMUD(hole=None, material_dict=None)[source]

Bases: Ui_PHoleMUD, QWidget

Page to set the Hole from DXF

saveNeeded
hole_name = 'Import from DXF'
hole_type

alias of HoleUD

update_mag_list()[source]

Update the material selector list according to hole magnet

update_graph()[source]

Plot the lamination with/without the hole

load_hole()[source]

Load the selected json file and display the hole

open_dxf_hole()[source]

Open the GUI to define the HoleUD

set_dxf_path()[source]

Update the hole according to the file defined by DXF_Hole

comp_output()[source]

Compute and display the hole output

Parameters:

self (PHoleMUD) – A PHoleMUD widget

check()[source]

Check that the current machine have all the needed field set

Parameters:

self (PHoleMUD) – A PHoleMUD widget

Returns:

error – Error message (return None if no error)

Return type:

str

emit_save()[source]

Send a saveNeeded signal to the DMachineSetup

staticMetaObject = <PySide2.QtCore.QMetaObject object>