Changes in src/sas/qtgui/Perspectives/Invariant/InvariantPerspective.py [e90988c:d1955d67] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Invariant/InvariantPerspective.py
re90988c rd1955d67 8 8 from PyQt5 import QtCore 9 9 from PyQt5 import QtGui, QtWidgets 10 from PyQt5 import QtWebKit 10 11 11 12 from twisted.internet import threads … … 62 63 self._model_item = QtGui.QStandardItem() 63 64 65 #self._helpView = QtWebKit.QWebView() 64 66 self.detailsDialog = DetailsDialog(self) 65 67 self.detailsDialog.cmdOK.clicked.connect(self.enabling) … … 80 82 # no reason to have this widget resizable 81 83 self.resize(self.minimumSizeHint()) 84 #self.setFixedSize(self.sizeHint()) 82 85 83 86 self.communicate = self._manager.communicator() … … 225 228 226 229 self.model = model 227 self.mapper.toFirst()228 230 self._data = GuiUtils.dataFromItem(self._model_item) 229 231 230 232 # Send the modified model item to DE for keeping in the model 231 233 # Currently -unused 232 # 234 #self.communicate.updateModelFromPerspectiveSignal.emit(self._model_item) 233 235 234 236 plot_data = GuiUtils.plotsFromCheckedItems(self._manager.filesWidget.model) … … 363 365 if self._high_extrapolate: 364 366 # for presentation in InvariantDetails 365 qmax_plot = Q_MAXIMUM_PLOT * max(temp_data.x) 367 qmax_plot = Q_MAXIMUM_PLOT * max(temp_data.x) # self._data.x) 366 368 367 369 if qmax_plot > Q_MAXIMUM: … … 429 431 def onHelp(self): 430 432 """ Display help when clicking on Help button """ 431 treeLocation = "/user/sasgui/perspectives/invariant/invariant_help.html" 432 self.parent.showHelp(treeLocation) 433 treeLocation = GuiUtils.HELP_DIRECTORY_LOCATION + \ 434 "/user/sasgui/perspectives/invariant/invariant_help.html" 435 webbrowser.open('file://' + treeLocation) 433 436 434 437 def setupSlots(self):
Note: See TracChangeset
for help on using the changeset viewer.