(self)
return empty_cells
Generates widget cells.

        Return a list of tuples, where the first element represents the cell
        class and the second element represents the cell position.

        :return list:
Generates widget cells.
Generates widget cells .
def _generate_widget_cells(self):
        """Generates widget cells.

        Return a list of tuples, where the first element represents the cell
        class and the second element represents the cell position.

        :return list:
        """
        empty_cells = []
        position = 1
        for row in range(1, self.rows + 1):
            for col in range(1, self.cols + 1):
                empty_cells.append(
                    ('col-{0} row-{1}'.format(col, row), position)
                )
                position += 1
        return empty_cells
def _generate_widget_cells ( self ) : empty_cells = [ ] position = 1 for row in range ( 1 , self . rows + 1 ) : for col in range ( 1 , self . cols + 1 ) : empty_cells . append ( ( 'col-{0} row-{1}' . format ( col , row ) , position ) ) position += 1 return empty_cells