(self, start, stop, attr)
Clear text and graphics on given (inclusive) text row range.
Clear text and graphics on given (inclusive) text row range.
Clear text and graphics on given ( inclusive ) text row range .
def clear_rows(self, start, stop, attr):
        """Clear text and graphics on given (inclusive) text row range."""
        self._clear_text_area(
            start, 1, stop, self._width, attr, adjust_end=True, clear_wrap=True
        )
        # clear pixels
        x0, y0, x1, y1 = self.text_to_pixel_area(start, 1, stop, self._width)
        _, back, _, _ = self._colourmap.split_attr(attr)
        self._pixels[y0:y1+1, x0:x1+1] = back
        # submit dirty rects before clear
        self.force_submit()
        # this should only be called on the active page
        if self._visible:
            self._queues.video.put(signals.Event(signals.VIDEO_CLEAR_ROWS, (back, start, stop)))
def clear_rows ( self , start , stop , attr ) : self . _clear_text_area ( start , 1 , stop , self . _width , attr , adjust_end = True , clear_wrap = True ) # clear pixels x0 , y0 , x1 , y1 = self . text_to_pixel_area ( start , 1 , stop , self . _width ) _ , back , _ , _ = self . _colourmap . split_attr ( attr ) self . _pixels [ y0 : y1 + 1 , x0 : x1 + 1 ] = back # submit dirty rects before clear self . force_submit ( ) # this should only be called on the active page if self . _visible : self . _queues . video . put ( signals . Event ( signals . VIDEO_CLEAR_ROWS , ( back , start , stop ) ) )