(self, pixel_buffer)
Initialise graphics viewport.
Initialise graphics viewport.
Initialise graphics viewport .
def __init__(self, pixel_buffer):
        """Initialise graphics viewport."""
        self._pixels = pixel_buffer
        self._max_width, self._max_height = self._pixels.width, self._pixels.height
        self._absolute = False
        self._rect = 0, 0, self._max_width-1, self._max_height-1
        self._active = False
def __init__ ( self , pixel_buffer ) : self . _pixels = pixel_buffer self . _max_width , self . _max_height = self . _pixels . width , self . _pixels . height self . _absolute = False self . _rect = 0 , 0 , self . _max_width - 1 , self . _max_height - 1 self . _active = False