(self, vpagenum, apagenum)
Set visible and active page.
Set visible and active page.
Set visible and active page .
def set_page(self, vpagenum, apagenum):
        """Set visible and active page."""
        self._vpagenum = vpagenum
        self._apagenum = apagenum
        self._apage = self._pages[self._apagenum]
        # cursor lives on active page
        # this is technically only the case in graphics mode -
        # in DOSBox it's visible in text mode if the active page is not visible
        # but then the cursor location is static and does not equal the text insert location
        # so this seems acceptable
        self._cursor.set_active(self._vpagenum == self._apagenum)
def set_page ( self , vpagenum , apagenum ) : self . _vpagenum = vpagenum self . _apagenum = apagenum self . _apage = self . _pages [ self . _apagenum ] # cursor lives on active page # this is technically only the case in graphics mode - # in DOSBox it's visible in text mode if the active page is not visible # but then the cursor location is static and does not equal the text insert location # so this seems acceptable self . _cursor . set_active ( self . _vpagenum == self . _apagenum )