painter.begin(splashImage) painter.drawText(QtCore.QPointF(270, 110), ilastik.core.readInBuildInfo()) painter.end() splashScreen = QtGui.QSplashScreen(splashImage) splashScreen.show() app.processEvents() ilastik.modules.loadModuleGuis() mainwindow = MainWindow(sys.argv) mainwindow.setStyleSheet("QSplitter::handle { background-color: #CCCCCC;}") mainwindow.show() #On OS X, the window has to be raised in order to be visible directly after starting #the app mainwindow.raise_() splashScreen.finish(mainwindow) randomseed = RandomSeed() app.exec_() print "cleaning up..." if mainwindow.labelWidget is not None: del mainwindow.labelWidget del mainwindow del randomseed del ilastik.core.jobMachine.GLOBAL_WM