def rowCount(self, mi):
        cols = self._editor.factory.cols
        result = (len(self._editor.names) + cols - 1) / cols
        return result
Reimplemented to return the number of rows.
dataset/ETHPy150Open enthought/traitsui/traitsui/qt4/image_enum_editor.py/ImageEnumModel.rowCount