source: sasview/src/sas/qtgui/WelcomePanel.py @ d813cad8

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 d813cad8 was d813cad8, checked in by davidm, 8 years ago

startup dialogs are now properly sized

  • Property mode set to 100755
File size: 722 bytes
RevLine 
[f721030]1# global
2import sys
3import os
4from PyQt4 import QtCore
5from PyQt4 import QtGui
6from PyQt4 import QtWebKit
7
8import sas.sasview
[f82ab8c]9import LocalConfig
[f721030]10
[f51ed67]11from UI.WelcomePanelUI import Ui_WelcomePanelUI
[f721030]12
[f51ed67]13class WelcomePanel(QtGui.QDialog, Ui_WelcomePanelUI):
[f721030]14    def __init__(self, parent=None):
15        super(WelcomePanel, self).__init__(parent)
[f51ed67]16        self.setupUi(self)
17
[f721030]18        self.setWindowTitle("Welcome")
19
20        version = sas.sasview.__version__
21        build = sas.sasview.__build__
22
[488c49d]23        ver = "\nSasView %s\nBuild: %s" % (version, build)
[f82ab8c]24        ver += 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.