def writeInductor(self, openetran): grid = self.Inductor.layout() status = 0 # Status = 1 when no widgets are left to delete while status == 0: status = Add_Delete_Widgets.deleteInductor(self, grid) # Number of Meters in the system num = len(openetran['inductor']) if num > 1: for k in range(num - 1): Add_Delete_Widgets.addInductor(self, grid) writeWidgets(openetran, grid, 'inductor', 2, 4, 0)
def deleteInductor(): Add_Delete_Widgets.deleteInductor(self, self.Inductor.layout())