def load_solution_matrix(self): index = 0 for operation_set in self.solution_grids[0]: image = utilities.get_image_name(operation_set[0]) gtk_object = self.sw_toy_images[index] gtk_object.set_from_file('img/' + image) index += 1 self.print_step()
def paint_solution_matrix(self, matrix, id=0): index = 0 print("\n") for operation_set in matrix[id]: image = utilities.get_image_name(operation_set[self.current_face]) gtk_object = self.sw_toy_images[index] gtk_object.set_from_file('img/' + image) index += 1 print(operation_set)
def paint_matrix(self, matrix, images, id=0): index = 0 print("\n") for operation_set in matrix: image = utilities.get_image_name(operation_set[0]) gtk_object = images[index + id] gtk_object.set_from_file('img/' + image) index += 1 print(operation_set)