def writeLPM(self, openetran): grid = self.LPM.layout() status = 0 # Status = 1 when no widgets are left to delete while status == 0: status = Add_Delete_Widgets.deleteLPM(self, grid) # Number of LPMs in the system num = len(openetran['lpm']) if num > 1: for k in range(num - 1): Add_Delete_Widgets.addLPM(self, grid) writeWidgets(openetran, grid, 'lpm', 3, 4, 1)
def deleteLPM(): Add_Delete_Widgets.deleteLPM(self, self.LPM.layout())