def __init__(self, cell_size, nrows, ncols, **kwds):
        """nrows, ncols are for calculating initial size of widget"""
        Widget.__init__(self, **kwds)
        self.cell_size = cell_size
        w, h = cell_size
        d = 2 * self.margin
        self.size = (w * ncols + d, h * nrows + d)
        self.cell_size = cell_size
nrows, ncols are for calculating initial size of widget
albow/grid_view.py