def update(self, render, force = False):
        """
        Update view
        @param render: IRender
        @param force: force update
        """
        if not force:
            return;
        drawArea = QtGui.QImage(self._width, self._height, render.getImageFormat())
        drawArea.fill(self._backgroundColor)
        with QtGui.QPainter(drawArea) as qp:
            qp.setFont(self._font)
            qp.setPen(self._fontColor) 
            qp.drawText(drawArea.rect(), QtCore.Qt.AlignCenter, self._label)
        render.drawImage(drawArea)
def update ( self , render , force = False ) : if not force : return ; drawArea = QtGui . QImage ( self . _width , self . _height , render . getImageFormat ( ) ) drawArea . fill ( self . _backgroundColor ) with QtGui . QPainter ( drawArea ) as qp : qp . setFont ( self . _font ) qp . setPen ( self . _fontColor ) qp . drawText ( drawArea . rect ( ) , QtCore . Qt . AlignCenter , self . _label ) render . drawImage ( drawArea )
Update view
        @param render: IRender
        @param force: force update