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