pyleecan.GUI.Dialog.DMachineSetup.DNotchTab.DNotchTab module

class DNotchTab(machine, is_stator=False)[source]

Bases: Ui_DNotchTab, QDialog

Step to set several notches

saveNeeded
emit_save()[source]

Send a saveNeeded signal to the DMachineSetup

s_add(notch=None, idx_notch=None)[source]

Signal to add a new notch

Parameters:
  • self (DNotchTab) – A DNotchTab widget

  • notch (Notch) – Notch to initialize in the new page if None create a new Notch

s_remove(index)[source]

Signal to remove the last notch

Parameters:

self (DNotchTab) – A DNotchTab widget

s_plot()[source]

Try to plot the lamination

Parameters:

self (DNotchTab) – a DNotchTab object

check()[source]

Check that the notches are correctly defined

Parameters:

self (DNotchTab) – A DNotchTab object

Returns:

error – Error message (return None if no error)

Return type:

str

staticMetaObject = <PySide2.QtCore.QMetaObject object>
update_and_close()[source]

Method called when clicking on ok button to check the machine before sending acceted signal

Parameters:

self (DNotchTab) – A DNotchTab object