pyleecan.GUI.Dialog.DMachineSetup.SMachineType.SMachineType module

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

Bases: Gen_SMachineType, QWidget

First Step to setup the Machine Type

saveNeeded
step_name = 'Machine Type'
set_desc()[source]

Set the description of the machine

Parameters:

self (SMachineType) – A SMachineType object

s_set_name()[source]

Set the name of the machine

Parameters:

self (SMachineType) – A SMachineType object

set_p()[source]

Signal to update the value of p according to the spinbox

Parameters:

self (SMachineType) – A SMachineType object

set_inner_rotor()[source]

Signal to update the value of is_internal according to the widget

Parameters:
  • self (SMachineType) – A SMachineType object

  • is_checked (bool) – State of is_internal

set_machine_type(index)[source]

Change the machine type according to the combobox

Parameters:
  • self (SMachineType) – A SMachineType object

  • index (int) – Selected machine type index

static check(machine)[source]

Check that the current machine have all the needed field set

Parameters:

machine (Machine) – Machine to check

Returns:

error – Error message (return None if no error)

Return type:

str

staticMetaObject = <PySide2.QtCore.QMetaObject object>