DMachineSetup module

class DMachineSetup(machine=None, dmatlib=None, machine_path='')[source]

Bases: pyleecan.GUI.Dialog.DMachineSetup.Ui_DMachineSetup.Ui_DMachineSetup, PySide2.QtWidgets.QWidget

Main windows of the Machine Setup Tools

machineChanged = <PySide2.QtCore.Signal object>
rejected = <PySide2.QtCore.Signal object>
save_needed()[source]

Set is_save_needed to True

closeEvent(event)[source]

Display a message before leaving

Parameters
  • self (DMachineSetup) – A DMachineSetup object

  • event – The closing event

reject()[source]
s_save()[source]

Slot for saving the current machine to a json file

Parameters

self (DMachineSetup) – A DMachineSetup object

s_save_close()[source]

Signal to save and close

Parameters

self (DMachineSetup) – A DMachineSetup object

s_load()[source]

Slot to load a machine from a .json file (triggered by b_load)

Parameters

self (DMachineSetup) – A DMachineSetup object

update_nav(next_step=None)[source]

Update the nav list to match the step of the current machine

update_enable_nav()[source]
get_machine_index()[source]

Get the index corresponding to the current machine in the mach_list

set_nav(index)[source]

Select the current widget according to the current machine type and the current nav index

Parameters
  • self (DMachineSetup) – A DMachineSetup object

  • index (int) – Current index of nav_step

s_next()[source]

Signal to set the next step as accessible (and selected)

Parameters

self (DMachineSetup) – A DMachineSetup object

staticMetaObject = <PySide2.QtCore.QMetaObject object>
s_previous()[source]

Signal to set the previous page of w_page_stack as accessible (and selected)

Parameters

self (DMachineSetup) – A DMachineSetup object