pyleecan.GUI.Dialog.DMachineSetup.SWindCond.SWindCond module

class SWindCond(machine, material_dict, is_stator=False)[source]

Bases: Ui_SWindCond, QWidget

Step to define the winding conductor

saveNeeded
step_name = 'Conductor'
emit_save()[source]

Send a saveNeeded signal to the DMachineSetup

s_set_cond_type(index)[source]

Setup the Gui for the selected conductor type

Parameters:
  • self (SWindCond) – A SWindCond object

  • index (int) – Index of the selected conductor type

s_update(index)[source]

Update the GUI to show the current conductor widget

Parameters:
  • self (SWindCond) – a SWindCond object

  • index (int) – Index of the selected conductor type

static check(lamination)[source]

Check that the current lamination have all the needed field set

Parameters:

lamination (Lamination) – Lamination to check

Returns:

error – Error message (return None if no error)

Return type:

str

staticMetaObject = <PySide2.QtCore.QMetaObject object>