def applyGroupButtonPressed(self, groupName, groupCheckboxFrame):

        headFilterFilenameList = groupCheckboxFrame.getEnabledHeadFilenames()
        jawFilterFilenameList = groupCheckboxFrame.getEnabledJawFilenames()
        moduleFilenameList = groupCheckboxFrame.getEnabledModuleFilenames()

        machineFilenameList = jsonHelper.getMachineListForGroup(groupName)

        # remove group which also removes group from machines
        # add group
        # iteratively look over machines and add the group back

        jsonHelper.removeGroupFromJSON(groupName)
        jsonHelper.addGroupToJSON(groupName, headFilterFilenameList, jawFilterFilenameList, moduleFilenameList)

        for machineFilename in machineFilenameList:
            jsonHelper.addGroupToMachine(groupName, machineFilename)

        self.parent.destroy()
 def deleteGroupButtonPressed(self, groupName):
     
     jsonHelper.removeGroupFromJSON(groupName)
     self.parent.destroy()