basicViewerPython.py
def on_framebuffer_resized(self, width, height, stride, buffer,
                               resize_window):
        """The Server's framebuffer size has changed, so we reset our canvas to
        use the new buffer and resize our window to match.
        """

        # We take a reference to the buffer, to guarantee that it stays valid
        # for the lifetime of the QImage, which will use it as its backing
        # buffer.
        self.buffer = buffer
        self.canvas = QtGui.QImage(
            buffer,
            width,
            height,
            stride * 4,
            QtGui.QImage.Format_RGB32
        )

        if resize_window:
            # Set this flag so we don't enter an infinite loop of resizing
            self.ignore_next_resize_event = True
            self.resize(width, height)
        if not self.shown:
            # Until we receive a resize event from the SDK, we don't know what
            # size the window should be, so the wait for the first event before
            # showing the window.
            self.shown = True
            self.show()
The Server's framebuffer size has changed, so we reset our canvas to
        use the new buffer and resize our window to match.
        
The Server's framebuffer size has changed, so we reset our canvas to
use the new buffer and resize our window to match.
The Server ' s framebuffer size has changed so we reset our canvas to use the new buffer and resize our window to match .
def on_framebuffer_resized(self, width, height, stride, buffer,
                               resize_window):
        self.buffer = buffer
        self.canvas = QtGui.QImage(
            buffer,
            width,
            height,
            stride * 4,
            QtGui.QImage.Format_RGB32
        )
        if resize_window:
            self.ignore_next_resize_event = True
            self.resize(width, height)
        if not self.shown:
            self.shown = True
            self.show()
def on_framebuffer_resized ( self , width , height , stride , buffer , resize_window ) : self . buffer = buffer self . canvas = QtGui . QImage ( buffer , width , height , stride * 4 , QtGui . QImage . Format_RGB32 ) if resize_window : self . ignore_next_resize_event = True self . resize ( width , height ) if not self . shown : self . shown = True self . show ( )
The Server's framebuffer size has changed, so we reset our canvas to
use the new buffer and resize our window to match.
The Server ' s framebuffer size has changed so we reset our canvas to use the new buffer and resize our window to match .
"""The Server's framebuffer size has changed, so we reset our canvas to
        use the new buffer and resize our window to match.
        """ # We take a reference to the buffer, to guarantee that it stays valid # for the lifetime of the QImage, which will use it as its backing # buffer. # Set this flag so we don't enter an infinite loop of resizing # Until we receive a resize event from the SDK, we don't know what # size the window should be, so the wait for the first event before # showing the window.
self
width
height
stride
buffer
resize_window