source:
sasview/src/sas/qtgui/MainWindow/WelcomePanel.py
@
bb57068
Last change on this file since bb57068 was 4992ff2, checked in by Piotr Rozyczko <rozyczko@…>, 7 years ago | |
---|---|
|
|
File size: 803 bytes |
Rev | Line | |
---|---|---|
[f721030] | 1 | # global |
2 | import sys | |
3 | import os | |
[4992ff2] | 4 | |
5 | from PyQt5 import QtWidgets | |
[f721030] | 6 | |
7 | import sas.sasview | |
[83eb5208] | 8 | import sas.qtgui.Utilities.LocalConfig as LocalConfig |
[cd2cc745] | 9 | from sas.qtgui.UI import images_rc |
10 | from sas.qtgui.UI import main_resources_rc | |
[f721030] | 11 | |
[83eb5208] | 12 | from sas.qtgui.MainWindow.UI.WelcomePanelUI import Ui_WelcomePanelUI |
[f721030] | 13 | |
[4992ff2] | 14 | class 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.