1 from PyQt5
import QtCore, QtGui, QtWidgets
10 SPLASH_TEXT=
""""Welcome to <b>Openstructure</b>!<br/><br/>
11 You are running version %s<br /><br />If you are new to OpenStructure, we
12 invite you to run the demos from the examples directory. Scripts can be
13 displayed by right clicking on the file and selecting 'Show source'.<br/><br/>
14 Feel free visit our website at:<br />
15 <a href='https://www.openstructure.org'>https://www.openstructure.org</a>
20 QtWidgets.QDialog.__init__(self, parent)
21 layout = QtWidgets.QHBoxLayout(self)
22 self.setLayout(layout)
23 imageLabel = QtWidgets.QLabel();
24 self.
pix_mappix_map = QtGui.QPixmap(LOGO_PATH);
25 imageLabel.setPixmap(self.
pix_mappix_map);
26 layout.addWidget(imageLabel)
27 self.
labellabel = QtWidgets.QTextBrowser()
28 self.
labellabel.setReadOnly(
True)
29 self.
labellabel.setOpenExternalLinks(
True)
30 self.
labellabel.setHtml(SPLASH_TEXT)
31 layout.addWidget(self.
labellabel)
34 splash =
SplashDialog(gui.GostyApp.Instance().perspective.main_area.qobject)
40 __all__=(
'SplashDialog',)
def __init__(self, parent=None)
String DLLEXPORT_OST_BASE GetSharedDataPath()