def updateScene(self):
    '\n        Clear the displayed scene using self.__lastclearcolor,\n        then draw the scaled current image.\n        '
    labelwidth = int(((self.__scalefactor * self.__scenewidth) + 0.5))
    labelheight = int(((self.__scalefactor * self.__sceneheight) + 0.5))
    newpixmap = QPixmap(labelwidth, labelheight)
    newpixmap.fill(self.__lastclearcolor)
    if (self.__sceneimage != None):
        mypainter = QPainter(newpixmap)
        trgrect = QRectF(0.0, 0.0, float(labelwidth), float(labelheight))
        srcrect = QRectF(0.0, 0.0, float(self.__scenewidth), float(self.__sceneheight))
        mypainter.drawImage(trgrect, self.__sceneimage, srcrect, Qt.AutoColor)
        mypainter.end()
    self.__label.setPixmap(newpixmap)
    self.__label.setMinimumSize(labelwidth, labelheight)
    self.__label.resize(labelwidth, labelheight)
    self.__label.update()
Clear the displayed scene using self.__lastclearcolor,
then draw the scaled current image.
def updateScene(self):
    '\n        Clear the displayed scene using self.__lastclearcolor,\n        then draw the scaled current image.\n        '
    labelwidth = int(((self.__scalefactor * self.__scenewidth) + 0.5))
    labelheight = int(((self.__scalefactor * self.__sceneheight) + 0.5))
    newpixmap = QPixmap(labelwidth, labelheight)
    newpixmap.fill(self.__lastclearcolor)
    if (self.__sceneimage != None):
        mypainter = QPainter(newpixmap)
        trgrect = QRectF(0.0, 0.0, float(labelwidth), float(labelheight))
        srcrect = QRectF(0.0, 0.0, float(self.__scenewidth), float(self.__sceneheight))
        mypainter.drawImage(trgrect, self.__sceneimage, srcrect, Qt.AutoColor)
        mypainter.end()
    self.__label.setPixmap(newpixmap)
    self.__label.setMinimumSize(labelwidth, labelheight)
    self.__label.resize(labelwidth, labelheight)
    self.__label.update()