Changeset 83710be in sasview


Ignore:
Timestamp:
Oct 24, 2017 3:57:44 PM (7 years ago)
Author:
krzywon
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:
c82fd8f
Parents:
1df1025
Message:

Open gpu options help when button is clicked.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Fitting/GPUOptions.py

    r1df1025 r83710be  
    44import sasmodels 
    55 
    6 from PyQt4 import QtGui, QtCore 
     6from PyQt4 import QtGui, QtCore, QtWebKit 
    77from sas.qtgui.Perspectives.Fitting.UI.GPUOptionsUI import Ui_GPUOptions 
    88 
     
    9393        Run the model tests when the test button is clicked 
    9494        """ 
     95        # TODO: Do something 
    9596        pass 
    9697 
     
    99100        Open the help menu when the help button is clicked 
    100101        """ 
    101         pass 
     102        tree_location = "user/sasgui/perspectives/fitting/gpu_setup.html" 
     103        anchor = "#device-selection" 
     104        self.helpView = QtWebKit.QWebView() 
     105        help_location = tree_location + anchor 
     106        self.helpView.load(QtCore.QUrl(help_location)) 
     107        self.helpView.show() 
    102108 
    103109    def reject(self): 
     
    105111        Close the window without modifying SAS_OPENCL 
    106112        """ 
     113        # FIXME: Reset option to original value 
    107114        self.close() 
    108115        self.open() 
Note: See TracChangeset for help on using the changeset viewer.