pyleecan.GUI.Dialog.DMachineSetup.DBore.DBore module

class DBore(lam)[source]

Bases: Ui_DBore, QDialog

Step to set the bore with winding

saveNeeded
valid_bore()[source]

Validate the bore and update the lamination

Parameters:

self (DBore) – a DBore object

emit_save()[source]

Send a saveNeeded signal to the DMachineSetup

set_alpha()[source]

Signal to update the value of alpha according to the line edit

Parameters:

self (DBore) – A DBore object

set_bore_type(index)[source]

Initialize self.lam with the bore corresponding to index

Parameters:
  • self (DBore) – A DBore object

  • index (int) – Index of the selected bore type in the list

s_update_bore()[source]

Update the bore widget

Parameters:

self (DBore) – A DBore object

s_change_bore(index)[source]

Signal to update the bore object and widget

Parameters:
  • self (DBore) – A DBore object

  • index (int) – Current index of the combobox

s_plot()[source]

Try to plot the lamination

Parameters:

self (DBore) – A DBore object

check()[source]

Check that the current lamination have all the needed field set

Parameters:

self (DBore) – A DBore object

Returns:

error – Error message (return None if no error)

Return type:

str

staticMetaObject = <PySide2.QtCore.QMetaObject object>