Ignore:
File:
1 edited

Legend:

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

    re90988c rd6b8a1d  
    33import os 
    44import types 
    5 import webbrowser 
    65 
    76from PyQt5 import QtCore 
    87from PyQt5 import QtGui 
    98from PyQt5 import QtWidgets 
     9from PyQt5 import QtWebKitWidgets 
    1010 
    1111from sas.qtgui.UI import images_rc 
     
    7373        # OK has to be initialized to True, after initial validator setup 
    7474        self.buttonBox.button(QtWidgets.QDialogButtonBox.Ok).setEnabled(True) 
     75 
     76        # Display HTML content 
     77        self.helpView = QtWebKitWidgets.QWebView() 
    7578 
    7679    def assignValidators(self): 
     
    157160        Show the "Fitting options" section of help 
    158161        """ 
    159         tree_location = GuiUtils.HELP_DIRECTORY_LOCATION 
    160         tree_location += "/user/sasgui/perspectives/fitting/" 
     162        tree_location = GuiUtils.HELP_DIRECTORY_LOCATION + "/user/sasgui/perspectives/fitting/" 
    161163 
    162164        # Actual file anchor will depend on the combo box index 
     
    165167        helpfile = "optimizer.html#fit-" + self.current_fitter_id  
    166168        help_location = tree_location + helpfile 
    167         webbrowser.open('file://' + os.path.realpath(help_location)) 
     169        self.helpView.load(QtCore.QUrl(help_location)) 
     170        self.helpView.show() 
    168171 
    169172    def widgetFromOption(self, option_id, current_fitter=None): 
Note: See TracChangeset for help on using the changeset viewer.