def trim_end(self, end):
        assert end > 0, "invalid trim amount %d!"%end
        assert end <= self.rows(), "cannot trim %d lines from %d!"%(
            end, self.rows())
        if self.widget_info:
            raise self._finalized_error
        
        self.shards = shards_trim_rows(self.shards, self.rows() - end)
Trim lines from the bottom of the canvas.
dataset/ETHPy150Open AnyMesh/anyMesh-Python/example/urwid/canvas.py/CompositeCanvas.trim_end