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

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalc
Last change on this file since 99ea1b0 was cd2cc745, checked in by Piotr Rozyczko <rozyczko@…>, 8 years ago

Workaround for the resource file requirement in each UI directory

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