Exemplo n.º 1
0
    def applyMachineButtonPressed(self, selectedMachineFileName, groupDescriptionFrameList):

        enabledGroupNames = []

        for groupDescriptionFrame in groupDescriptionFrameList:
            if groupDescriptionFrame.isEnabled():
                enabledGroupNames.append(groupDescriptionFrame.groupName)

        jsonHelper.removeMachineFromJSONForMachine(selectedMachineFileName)
        jsonHelper.addMachineToJSON(selectedMachineFileName, enabledGroupNames)

        self.parent.destroy()
 def deleteMachineButtonPressed(self, selectedMachineFileName):
     
     jsonHelper.removeMachineFromJSONForMachine(selectedMachineFileName)
     os.remove('./machineConfig/'+selectedMachineFileName)    
     self.parent.destroy()