(self, mode, pages, num_attr)
Initialise for new graphics mode.
Initialise for new graphics mode.
Initialise for new graphics mode .
def init_mode(self, mode, pages, num_attr):
        """Initialise for new graphics mode."""
        self._mode = mode
        self._pages = pages
        self._num_attr = num_attr
        # set graphics viewport
        self.graph_view = GraphicsViewPort(self._pages[0].pixels)
        self._unset_window()
        self.reset()
def init_mode ( self , mode , pages , num_attr ) : self . _mode = mode self . _pages = pages self . _num_attr = num_attr # set graphics viewport self . graph_view = GraphicsViewPort ( self . _pages [ 0 ] . pixels ) self . _unset_window ( ) self . reset ( )