Changeset 481ff26 in sasview for src/sas/qtgui/AboutBox.py


Ignore:
Timestamp:
Jul 4, 2016 5:32:49 AM (8 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
f0f309d
Parents:
f82ab8c
Message:

Modified Data Explorer slightly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/AboutBox.py

    rf82ab8c r481ff26  
    1 # global 
    2 import sys 
    3 import os 
    41import functools 
    5  
    6 from PyQt4 import QtCore 
    7 from PyQt4 import QtGui 
    8 from PyQt4 import QtWebKit 
    92 
    103import sas.sasview 
     
    2821        """ 
    2922        version = sas.sasview.__version__ 
    30         build = sas.sasview.__build__ 
    3123 
    32         version_text = r'<html><head/><body><p><span style=" font-size:24pt;">'\ 
    33                      + str(version) + r'</span></p></body></html>' 
    3424        self.lblVersion.setText(str(version)) 
    3525        lbl_font = self.font() 
     
    4232        about_text += '<p>Comments? Bugs? Requests?<br/>' 
    4333        about_text += r'<a href=mailto:help@sasview.org>Send us a ticket</a></p><br/>' 
    44         about_text += r'<a href=https://github.com/SasView/sasview/releases>Get the latest version</a></p><br/>' 
     34        about_text += r'<a href=' + str(LocalConfig.__download_page__)\ 
     35                   + 'Get the latest version</a></p><br/>' 
    4536        self.lblAbout.setText(about_text) 
    4637 
     
    5243        Add actions to the logo push buttons 
    5344        """ 
    54         self.cmdLinkUT.clicked.connect(functools.partial(GuiUtils.openLink, LocalConfig._inst_url)) 
    55         self.cmdLinkUMD.clicked.connect(functools.partial(GuiUtils.openLink, LocalConfig._umd_url)) 
    56         self.cmdLinkNIST.clicked.connect(functools.partial(GuiUtils.openLink, LocalConfig._nist_url)) 
    57         self.cmdLinkSNS.clicked.connect(functools.partial(GuiUtils.openLink, LocalConfig._sns_url)) 
    58         self.cmdLinkISIS.clicked.connect(functools.partial(GuiUtils.openLink, LocalConfig._isis_url)) 
    59         self.cmdLinkESS.clicked.connect(functools.partial(GuiUtils.openLink, LocalConfig._ess_url)) 
    60         self.cmdLinkILL.clicked.connect(functools.partial(GuiUtils.openLink, LocalConfig._ill_url)) 
     45        self.cmdLinkUT.clicked.connect(functools.partial( 
     46            GuiUtils.openLink, LocalConfig._inst_url)) 
     47        self.cmdLinkUMD.clicked.connect(functools.partial( 
     48            GuiUtils.openLink, LocalConfig._umd_url)) 
     49        self.cmdLinkNIST.clicked.connect(functools.partial( 
     50            GuiUtils.openLink, LocalConfig._nist_url)) 
     51        self.cmdLinkSNS.clicked.connect(functools.partial( 
     52            GuiUtils.openLink, LocalConfig._sns_url)) 
     53        self.cmdLinkISIS.clicked.connect(functools.partial( 
     54            GuiUtils.openLink, LocalConfig._isis_url)) 
     55        self.cmdLinkESS.clicked.connect(functools.partial( 
     56            GuiUtils.openLink, LocalConfig._ess_url)) 
     57        self.cmdLinkILL.clicked.connect(functools.partial( 
     58            GuiUtils.openLink, LocalConfig._ill_url)) 
    6159 
    6260        self.cmdOK.clicked.connect(self.close) 
Note: See TracChangeset for help on using the changeset viewer.