def main(args=None):
if args is None:
args = sys.argv[:]
user_options = Options()
options = user_options.parse_args(args[1:])
signal.signal(signal.SIGINT, sigint_handler)
app = QW.QApplication(sys.argv)
filename = sequana_data("drawing.png", "../gui")
if options.nosplash:
app.processEvents()
sequana = SequanaGUI(user_options=options)
sequana.show()
else:
# Show the splash screen for a few seconds
splash_pix = QtGui.QPixmap(filename)
splash = QW.QSplashScreen(splash_pix, Qt.WindowStaysOnTopHint)
splash.setMask(splash_pix.mask())
splash.show()
for i in range(0, 100):
t = time.time()
while time.time() < t + 0.5/100.:
app.processEvents()
app.processEvents()
sequana = SequanaGUI(user_options=options)
sequana.show()
splash.finish(sequana)
# Make sure the main window is the active one
sequana.raise_()
sequana.activateWindow()
sys.exit(app.exec_())
评论列表
文章目录