(self, src)
Copy source into this page.
Copy source into this page.
Copy source into this page .
def copy_from(self, src):
        """Copy source into this page."""
        for dst_row, src_row in zip(self._rows, src._rows):
            assert len(dst_row.chars) == len(src_row.chars)
            assert len(dst_row.attrs) == len(src_row.attrs)
            dst_row.chars[:] = src_row.chars
            dst_row.attrs[:] = src_row.attrs
            dst_row.length = src_row.length
            dst_row.wrap = src_row.wrap
        self._dbcs_text[:] = src._dbcs_text
        self._pixels[:, :] = src._pixels
        self._pixel_access = _PixelAccess(self)
        # resubmit to interface
        self.resubmit()
def copy_from ( self , src ) : for dst_row , src_row in zip ( self . _rows , src . _rows ) : assert len ( dst_row . chars ) == len ( src_row . chars ) assert len ( dst_row . attrs ) == len ( src_row . attrs ) dst_row . chars [ : ] = src_row . chars dst_row . attrs [ : ] = src_row . attrs dst_row . length = src_row . length dst_row . wrap = src_row . wrap self . _dbcs_text [ : ] = src . _dbcs_text self . _pixels [ : , : ] = src . _pixels self . _pixel_access = _PixelAccess ( self ) # resubmit to interface self . resubmit ( )