pyleecan.GUI.Dialog.DMachineSetup.SWPole.SWPole module¶
- class SWPole(machine, material_dict, is_stator=False)[source]¶
Bases:
Ui_SWPole
,QWidget
Step to set the lamination pole (for WRSM)
- saveNeeded¶
- step_name = 'Pole'¶
- set_slot_type(index)[source]¶
Initialize self.obj with the slot corresponding to index
- Parameters:
self (SWPole) – A SWPole object
index (int) – Index of the selected slot type in the list
- update_slot_text(Zs)[source]¶
Update in_Zs and out_slot_pitch with the correct value
- Parameters:
self (SWPole) – A SWPole object
Zs (int) – The current value of Zs
- s_change_slot(index)[source]¶
Signal to update the interface and show a specific page
- Parameters:
self (SWPole) – a SWPole object
index (int) – Index of w_page_stack to show
- staticMetaObject = <PySide2.QtCore.QMetaObject object>¶
- static check(lam)[source]¶
Check that the current machine have all the needed field set
- Parameters:
lam (Lamination) – Lamination to check
- Returns:
error – Error message (return None if no error)
- Return type:
str