(
            self, queues, pixel_height, pixel_width, height, width,
            colourmap, attr, font, codepage, do_fullwidth
        )
Initialise the screen buffer to given dimensions.
Initialise the screen buffer to given dimensions.
Initialise the screen buffer to given dimensions .
def __init__(
            self, queues, pixel_height, pixel_width, height, width,
            colourmap, attr, font, codepage, do_fullwidth
        ):
        """Initialise the screen buffer to given dimensions."""
        self._rows = [_TextRow(attr, width) for _ in range(height)]
        self._width = width
        self._height = height
        self._font = font
        self._colourmap = colourmap
        # DBCS support
        self._codepage = codepage
        self._dbcs_enabled = codepage.dbcs and do_fullwidth
        self._dbcs_text = [[u' '] * width for _ in range(height)]
        # initialise pixel buffers
        self._pixels = ByteMatrix(pixel_height, pixel_width)
        # with set_attr that calls submit_pixels
        self._pixel_access = _PixelAccess(self)
        # needed for signals only
        self._queues = queues
        # dirty rectangle collection
        self._dirty_left = {}
        self._dirty_right = {}
        self._locked = False
        self._visible = False
def __init__ ( self , queues , pixel_height , pixel_width , height , width , colourmap , attr , font , codepage , do_fullwidth ) : self . _rows = [ _TextRow ( attr , width ) for _ in range ( height ) ] self . _width = width self . _height = height self . _font = font self . _colourmap = colourmap # DBCS support self . _codepage = codepage self . _dbcs_enabled = codepage . dbcs and do_fullwidth self . _dbcs_text = [ [ u' ' ] * width for _ in range ( height ) ] # initialise pixel buffers self . _pixels = ByteMatrix ( pixel_height , pixel_width ) # with set_attr that calls submit_pixels self . _pixel_access = _PixelAccess ( self ) # needed for signals only self . _queues = queues # dirty rectangle collection self . _dirty_left = { } self . _dirty_right = { } self . _locked = False self . _visible = False