Changes in src/sas/qtgui/Perspectives/Fitting/FittingOptions.py [e90988c:d6b8a1d] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingOptions.py
re90988c rd6b8a1d 3 3 import os 4 4 import types 5 import webbrowser6 5 7 6 from PyQt5 import QtCore 8 7 from PyQt5 import QtGui 9 8 from PyQt5 import QtWidgets 9 from PyQt5 import QtWebKitWidgets 10 10 11 11 from sas.qtgui.UI import images_rc … … 73 73 # OK has to be initialized to True, after initial validator setup 74 74 self.buttonBox.button(QtWidgets.QDialogButtonBox.Ok).setEnabled(True) 75 76 # Display HTML content 77 self.helpView = QtWebKitWidgets.QWebView() 75 78 76 79 def assignValidators(self): … … 157 160 Show the "Fitting options" section of help 158 161 """ 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/" 161 163 162 164 # Actual file anchor will depend on the combo box index … … 165 167 helpfile = "optimizer.html#fit-" + self.current_fitter_id 166 168 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() 168 171 169 172 def widgetFromOption(self, option_id, current_fitter=None):
Note: See TracChangeset
for help on using the changeset viewer.