(self)
Completely resubmit the screen to the interface.
Completely resubmit the screen to the interface.
Completely resubmit the screen to the interface .
def rebuild(self):
        """Completely resubmit the screen to the interface."""
        # set the screen mode
        self._queues.video.put(signals.Event(
            signals.VIDEO_SET_MODE, (
                self.mode.pixel_height, self.mode.pixel_width,
                self.mode.height, self.mode.width
            )
        ))
        # rebuild palette
        self.colourmap.submit()
        # set the border
        self._queues.video.put(signals.Event(signals.VIDEO_SET_BORDER_ATTR, (self._border_attr,)))
        # rebuild cursor
        self.cursor.rebuild()
        # redraw the text screen and submit to interface
        for page in self.pages:
            page.resubmit()
def rebuild ( self ) : # set the screen mode self . _queues . video . put ( signals . Event ( signals . VIDEO_SET_MODE , ( self . mode . pixel_height , self . mode . pixel_width , self . mode . height , self . mode . width ) ) ) # rebuild palette self . colourmap . submit ( ) # set the border self . _queues . video . put ( signals . Event ( signals . VIDEO_SET_BORDER_ATTR , ( self . _border_attr , ) ) ) # rebuild cursor self . cursor . rebuild ( ) # redraw the text screen and submit to interface for page in self . pages : page . resubmit ( )