Changes in src/sas/qtgui/Perspectives/Fitting/FittingOptions.py [d6b8a1d:e90988c] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingOptions.py
rd6b8a1d re90988c 3 3 import os 4 4 import types 5 import webbrowser 5 6 6 7 from PyQt5 import QtCore 7 8 from PyQt5 import QtGui 8 9 from PyQt5 import QtWidgets 9 from PyQt5 import QtWebKitWidgets10 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 content77 self.helpView = QtWebKitWidgets.QWebView()78 75 79 76 def assignValidators(self): … … 160 157 Show the "Fitting options" section of help 161 158 """ 162 tree_location = GuiUtils.HELP_DIRECTORY_LOCATION + "/user/sasgui/perspectives/fitting/" 159 tree_location = GuiUtils.HELP_DIRECTORY_LOCATION 160 tree_location += "/user/sasgui/perspectives/fitting/" 163 161 164 162 # Actual file anchor will depend on the combo box index … … 167 165 helpfile = "optimizer.html#fit-" + self.current_fitter_id 168 166 help_location = tree_location + helpfile 169 self.helpView.load(QtCore.QUrl(help_location)) 170 self.helpView.show() 167 webbrowser.open('file://' + os.path.realpath(help_location)) 171 168 172 169 def widgetFromOption(self, option_id, current_fitter=None):
Note: See TracChangeset
for help on using the changeset viewer.