model.reparent_to(root)
total_width, total_height = end_size * ncols, end_size * nrows
left, bottom = -total_width/2, -total_height/2
model.reparent_to(root)
total_width, total_height = end_size * ncols, end_size * nrows
left, bottom = -total_width/2, -total_height/2