I have created a multidimensional array in Python like this:
self.cells = np.empty((r,c),dtype=np.object)
Now I want to iterate through all
How about this:
import itertools for cell in itertools.chain(*self.cells): cell.drawCell(surface, posx, posy)