(self, mode)
Initialise the scroll area for new screen mode.
Initialise the scroll area for new screen mode.
Initialise the scroll area for new screen mode .
def init_mode(self, mode):
        """Initialise the scroll area for new screen mode."""
        self._height = mode.height
        if self._bottom == self._height:
            # tandy/pcjr special case: VIEW PRINT to 25 is preserved
            self.set(1, self._height)
        else:
            self.unset()
def init_mode ( self , mode ) : self . _height = mode . height if self . _bottom == self . _height : # tandy/pcjr special case: VIEW PRINT to 25 is preserved self . set ( 1 , self . _height ) else : self . unset ( )