Changes in src/sas/qtgui/Perspectives/Fitting/FittingWidget.py [a3c94b54:d3c0b95] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
ra3c94b54 rd3c0b95 8 8 from twisted.internet import threads 9 9 import numpy as np 10 import webbrowser 10 11 11 12 from PyQt5 import QtCore 12 13 from PyQt5 import QtGui 13 14 from PyQt5 import QtWidgets 14 from PyQt5 import QtWebKitWidgets15 # Officially QtWebEngineWidgets are the way to display HTML in Qt5,16 # but this module isn't ported to PyQt5 yet...17 # let's wait. In the meantime no Help.18 #from PyQt5 import QtWebEngineWidgets19 15 20 16 from sasmodels import product … … 130 126 131 127 # Display HTML content 132 self.helpView = QtWebKitWidgets.QWebView()128 #self.setupHelp() 133 129 134 130 # New font to display angstrom symbol … … 945 941 Show the "Fitting" section of help 946 942 """ 947 tree_location = GuiUtils.HELP_DIRECTORY_LOCATION +"/user/sasgui/perspectives/fitting/"943 tree_location = "/user/sasgui/perspectives/fitting/" 948 944 949 945 # Actual file will depend on the current tab … … 955 951 helpfile = "residuals_help.html" 956 952 elif tab_id == 2: 957 helpfile = " sm_help.html"953 helpfile = "resolution.html" 958 954 elif tab_id == 3: 959 helpfile = "pd _help.html"955 helpfile = "pd/polydispersity.html" 960 956 elif tab_id == 4: 961 helpfile = "mag _help.html"957 helpfile = "magnetism/magnetism.html" 962 958 help_location = tree_location + helpfile 963 959 964 content = QtCore.QUrl(help_location) 965 self.helpView.load(QtCore.QUrl(help_location)) 966 self.helpView.show() 960 self.showHelp(help_location) 961 962 def showHelp(self, url): 963 """ 964 Calls parent's method for opening an HTML page 965 """ 966 self.parent.showHelp(url) 967 967 968 968 def onDisplayMagneticAngles(self):
Note: See TracChangeset
for help on using the changeset viewer.