diff --git a/modules/gui/pymod/init_splash.py b/modules/gui/pymod/init_splash.py index 33263606301d852f81414bfffcf62d2f8acfa215..ec5e3667cd23e8625b9bc29fcb811bd6eda0e3d5 100644 --- a/modules/gui/pymod/init_splash.py +++ b/modules/gui/pymod/init_splash.py @@ -6,6 +6,15 @@ from ost import gui LOGO_PATH = os.path.join(ost.GetSharedDataPath(), "gui", "images", "logo-small.png") + +SPLASH_TEXT=""""Welcome to <b>Openstructure</b>!<br/><br/> +You are running version %s<br /><br />If you are new to OpenStructure, we +invite you to run the demos from the examples directory. Scripts can be +displayed by right clicking on the file and selecting 'Show source'.<br/><br/> +Feel free visit our website at:<br /> +<a href='http://www.openstructure.org'>http://www.openstructure.org</a> +""" % ost.VERSION + class SplashDialog(QtGui.QDialog): def __init__(self, parent=None): QtGui.QDialog.__init__(self, parent) @@ -15,9 +24,10 @@ class SplashDialog(QtGui.QDialog): self.pix_map = QtGui.QPixmap(LOGO_PATH); imageLabel.setPixmap(self.pix_map); layout.addWidget(imageLabel) - self.label = QtGui.QTextEdit() + self.label = QtGui.QTextBrowser() self.label.setReadOnly(True) - self.label.setHtml("Welcome to <b>Openstructure</b>!<br /><br />You are running version 1.0.0a<br /><br />If you are new to OpenStructure, we invite you to run the demos from the examples directory. Scripts can be displayed by right clicking on the file and selecting 'Show source'.<br /><br />Feel free visit our website at:<br /> http://www.openstructure.org") + self.label.setOpenExternalLinks(True) + self.label.setHtml(SPLASH_TEXT) layout.addWidget(self.label) def _InitSplash(): @@ -25,3 +35,6 @@ def _InitSplash(): splash.exec_() #QtCore.QTimer.singleShot(30000, splash.close); + + +__all__=('SplashDialog',)