Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Invariant/InvariantPerspective.py

    rd1955d67 re90988c  
    88from PyQt5 import QtCore 
    99from PyQt5 import QtGui, QtWidgets 
    10 from PyQt5 import QtWebKit 
    1110 
    1211from twisted.internet import threads 
     
    6362        self._model_item = QtGui.QStandardItem() 
    6463 
    65         #self._helpView = QtWebKit.QWebView() 
    6664        self.detailsDialog = DetailsDialog(self) 
    6765        self.detailsDialog.cmdOK.clicked.connect(self.enabling) 
     
    8280        # no reason to have this widget resizable 
    8381        self.resize(self.minimumSizeHint()) 
    84         #self.setFixedSize(self.sizeHint()) 
    8582 
    8683        self.communicate = self._manager.communicator() 
     
    228225 
    229226        self.model = model 
     227        self.mapper.toFirst() 
    230228        self._data = GuiUtils.dataFromItem(self._model_item) 
    231229 
    232230        # Send the modified model item to DE for keeping in the model 
    233231        # Currently -unused 
    234         #self.communicate.updateModelFromPerspectiveSignal.emit(self._model_item) 
     232        # self.communicate.updateModelFromPerspectiveSignal.emit(self._model_item) 
    235233 
    236234        plot_data = GuiUtils.plotsFromCheckedItems(self._manager.filesWidget.model) 
     
    365363            if self._high_extrapolate: 
    366364                # for presentation in InvariantDetails 
    367                 qmax_plot = Q_MAXIMUM_PLOT * max(temp_data.x) # self._data.x) 
     365                qmax_plot = Q_MAXIMUM_PLOT * max(temp_data.x) 
    368366 
    369367                if qmax_plot > Q_MAXIMUM: 
     
    431429    def onHelp(self): 
    432430        """ Display help when clicking on Help button """ 
    433         treeLocation = GuiUtils.HELP_DIRECTORY_LOCATION + \ 
    434             "/user/sasgui/perspectives/invariant/invariant_help.html" 
    435         webbrowser.open('file://' + treeLocation) 
     431        treeLocation = "/user/sasgui/perspectives/invariant/invariant_help.html" 
     432        self.parent.showHelp(treeLocation) 
    436433 
    437434    def setupSlots(self): 
Note: See TracChangeset for help on using the changeset viewer.