DMachineSetup module

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

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

Main windows of the Machine Setup Tools

machineChanged
rejected
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()[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
s_previous()[source]

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

Parameters:self (DMachineSetup) – A DMachineSetup object