source: sasview/src/sas/qtgui/MainWindow/WelcomePanel.py @ d32a594

Last change on this file since d32a594 was 4992ff2, checked in by Piotr Rozyczko <rozyczko@…>, 7 years ago

Initial, in-progress version. Not really working atm. SASVIEW-787

  • Property mode set to 100644
File size: 803 bytes
Line 
1# global
2import sys
3import os
4
5from PyQt5 import QtWidgets
6
7import sas.sasview
8import sas.qtgui.Utilities.LocalConfig as LocalConfig
9from sas.qtgui.UI import images_rc
10from sas.qtgui.UI import main_resources_rc
11
12from sas.qtgui.MainWindow.UI.WelcomePanelUI import Ui_WelcomePanelUI
13
14class WelcomePanel(QtWidgets.QDialog, Ui_WelcomePanelUI):
15    def __init__(self, parent=None):
16        super(WelcomePanel, self).__init__(parent)
17        self.setupUi(self)
18
19        self.setWindowTitle("Welcome")
20
21        version = sas.sasview.__version__
22        build = sas.sasview.__build__
23
24        ver = "\nSasView %s\nBuild: %s\n%s" % (version, build, LocalConfig._copyright)
25
26        self.lblVersion.setText(ver)
27
28        # no reason to have this widget resizable
29        self.setFixedSize(self.minimumSizeHint())
Note: See TracBrowser for help on using the repository browser.