Did I find the right examples for you? yes no

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)
Disable QWidget updates (using QWidget.setUpdatesEnabled)
    

            @wraps(func)
    def helper(*args, **kwds):
        return GeneratorContextManager(func(*args, **kwds))
        


src/o/r/Orange-2.7.2/Orange/OrangeCanvas/gui/stackedwidget.py   Orange(Download)
from PyQt4.QtCore import pyqtProperty as Property
 
from .utils import updates_disabled
 
log = logging.getLogger(__name__)
        next_pix = QPixmap.grabWidget(next_widget)
 
        with updates_disabled(self):
            self.__fadeWidget.setPixmap(current_pix)
            self.__fadeWidget.setPixmap2(next_pix)
        self.__fadeWidget.blendingFactor_ = 1.0
        self.__currentIndex = self.__nextCurrentIndex
        with updates_disabled(self):
            self.layout().setCurrentIndex(self.__currentIndex)
        self.transitionFinished.emit()

src/o/r/orange3-HEAD/Orange/canvas/gui/stackedwidget.py   orange3(Download)
from PyQt4.QtCore import pyqtProperty as Property
 
from .utils import updates_disabled
 
log = logging.getLogger(__name__)
        next_pix = QPixmap.grabWidget(next_widget)
 
        with updates_disabled(self):
            self.__fadeWidget.setPixmap(current_pix)
            self.__fadeWidget.setPixmap2(next_pix)
        self.__fadeWidget.blendingFactor_ = 1.0
        self.__currentIndex = self.__nextCurrentIndex
        with updates_disabled(self):
            self.layout().setCurrentIndex(self.__currentIndex)
        self.transitionFinished.emit()