def resizeScene(self, width, height):
    '\n        Resize the scene to the given width and height in units of pixels.\n        If the size changes, this deletes the current image and clear the\n        displayed scene.\n        '
    newwidth = int((width + 0.5))
    if (newwidth < self.__minsize):
        newwidth = self.__minsize
    newheight = int((height + 0.5))
    if (newheight < self.__minsize):
        newheight = self.__minsize
    if ((newwidth != self.__scenewidth) or (newheight != self.__sceneheight)):
        self.__scenewidth = newwidth
        self.__sceneheight = newheight
        if self.__autoscale:
            self.__scalefactor = 1.0
            barheights = (self.menuBar().height() + self.statusBar().height())
            self.resize((newwidth + self.__framedelta), ((newheight + self.__framedelta) + barheights))
        self.clearScene(None)
Resize the scene to the given width and height in units of pixels.
If the size changes, this deletes the current image and clear the
displayed scene.
def resizeScene(self, width, height):
    '\n        Resize the scene to the given width and height in units of pixels.\n        If the size changes, this deletes the current image and clear the\n        displayed scene.\n        '
    newwidth = int((width + 0.5))
    if (newwidth < self.__minsize):
        newwidth = self.__minsize
    newheight = int((height + 0.5))
    if (newheight < self.__minsize):
        newheight = self.__minsize
    if ((newwidth != self.__scenewidth) or (newheight != self.__sceneheight)):
        self.__scenewidth = newwidth
        self.__sceneheight = newheight
        if self.__autoscale:
            self.__scalefactor = 1.0
            barheights = (self.menuBar().height() + self.statusBar().height())
            self.resize((newwidth + self.__framedelta), ((newheight + self.__framedelta) + barheights))
        self.clearScene(None)