def writeGround(self, openetran): grid = self.Ground.layout() status = 0 # Status = 1 when no widgets are left to delete while status == 0: status = Add_Delete_Widgets.deleteGround(self, grid) # Number of grounds in the system num = len(openetran['ground']) if num > 1: for k in range(num - 1): Add_Delete_Widgets.addGround(self, grid) writeWidgets(openetran, grid, 'ground', 4, 6, 0)
def deleteGround(): Add_Delete_Widgets.deleteGround(self, self.Ground.layout())