def changeImage(self, number):
        self.fileSelectorList.setEnabled(False)

        self.activeImageLock.acquire()
        QtCore.QCoreApplication.processEvents()
        if self.labelWidget != None:
            self.labelWidget._history.volumeEditor = None

        self.destroyImageWindows()

        self._activeImageNumber = number
        self._activeImage = self.project.dataMgr[number]

        self.project.dataMgr._activeImageNumber = number
        self.project.dataMgr._activeImage = self._activeImage

        self.createImageWindows( self.project.dataMgr[number]._dataVol)

        self.labelWidget.repaint() #for overlays
        self.activeImageLock.release()

        # Notify tabs
        self.ribbon.widget(self.ribbon.currentIndex()).on_activation()
        self.ribbon.widget(self.ribbon.currentIndex()).on_imageChanged()
        self.fileSelectorList.setEnabled(True)
dataset/ETHPy150Open ilastik/ilastik-0.5/ilastik/ilastikMain.py/MainWindow.changeImage/operator `is not` -> `!=`