def writeArrbez(self, openetran): grid = self.Arrbez.layout() status = 0 # Status = 1 when no widgets are left to delete while status == 0: status = Add_Delete_Widgets.deleteArrbez(self, grid) # Number of arrbez in the system num = len(openetran['arrbez']) if num > 1: for k in range(num - 1): Add_Delete_Widgets.addArrbez(self, grid) writeWidgets(openetran, grid, 'arrbez', 4, 4, 0)
def newArrbez(): Add_Delete_Widgets.addArrbez(self, self.Arrbez.layout())