SWSlot module¶
-
class
SWSlot
(machine, matlib, is_stator=False)[source]¶ Bases:
pyleecan.GUI.Dialog.DMachineSetup.SWSlot.Gen_SWSlot.Gen_SWSlot
,PySide2.QtWidgets.QWidget
Step to set the slot with winding
-
saveNeeded
= <PySide2.QtCore.Signal object>¶
-
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
-
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
-
staticMetaObject
= <PySide2.QtCore.QMetaObject object>¶
-