def destroyImageWindows(self):

        if self.labelWidget != None:
            self.labelWidget.setAttribute(QtCore.Qt.WA_DeleteOnClose, True)
            self.labelWidget.cleanUp()
            self.labelWidget.close()
            self.labelWidget.deleteLater()

        self.ribbon.widget(self.ribbon.currentTabNumber).on_deActivation()

        for dock in self.labelDocks:
            self.removeDockWidget(dock)
        self.labelDocks = []

        self.volumeEditorDock = None
dataset/ETHPy150Open ilastik/ilastik-0.5/ilastik/ilastikMain.py/MainWindow.destroyImageWindows/operator `is not` -> `!=`