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