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

Last change on this file since 46ca1f4 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
RevLine 
[f721030]1# global
2import sys
3import os
[4992ff2]4
5from PyQt5 import QtWidgets
[f721030]6
7import sas.sasview
[83eb5208]8import sas.qtgui.Utilities.LocalConfig as LocalConfig
[cd2cc745]9from sas.qtgui.UI import images_rc
10from sas.qtgui.UI import main_resources_rc
[f721030]11
[83eb5208]12from sas.qtgui.MainWindow.UI.WelcomePanelUI import Ui_WelcomePanelUI
[f721030]13
[4992ff2]14class WelcomePanel(QtWidgets.QDialog, Ui_WelcomePanelUI):
[f721030]15    def __init__(self, parent=None):
16        super(WelcomePanel, self).__init__(parent)
[f51ed67]17        self.setupUi(self)
18
[f721030]19        self.setWindowTitle("Welcome")
20
21        version = sas.sasview.__version__
22        build = sas.sasview.__build__
23
[b27c681]24        ver = "\nSasView %s\nBuild: %s\n%s" % (version, build, LocalConfig._copyright)
[488c49d]25
[d813cad8]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.