pyleecan.GUI.Dialog.DMachineSetup.SWSlot.SWSlot module¶
- class SWSlot(machine, material_dict, is_stator=False)[source]¶
Bases:
Gen_SWSlot
,QWidget
Step to set the slot with winding
- saveNeeded¶
- step_name = 'Slot'¶
- set_slot_type(index)[source]¶
Initialize self.obj with the slot corresponding to index
- Parameters:
self (SWSlot) – A SWSlot object
index (int) – Index of the selected slot type in the list
- set_Zs()[source]¶
Signal to update the value of Zs according to the spinbox
- Parameters:
self (SWSlot) – A SWSlot object
- set_slot_pitch(Zs)[source]¶
Update out_slot_pitch with the correct value
- Parameters:
self (SWSlot) – A SWSlot object
Zs (int) – The current value of Zs
- s_change_slot(index)[source]¶
Signal to update the slot object and widget
- Parameters:
self (SWSlot) – A SWSlot object
index (int) – Current index of the combobox
- staticMetaObject = <PySide2.QtCore.QMetaObject object>¶
- static check(lam)[source]¶
Check that the current lamination have all the needed field set
- Parameters:
lam (LamSlotWind) – Lamination to check
- Returns:
error – Error message (return None if no error)
- Return type:
str