Ignore:
File:
1 edited

Legend:

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

    re90988c rd1955d67  
    88from PyQt5 import QtCore 
    99from PyQt5 import QtGui, QtWidgets 
     10from PyQt5 import QtWebKit 
    1011 
    1112from twisted.internet import threads 
     
    6263        self._model_item = QtGui.QStandardItem() 
    6364 
     65        #self._helpView = QtWebKit.QWebView() 
    6466        self.detailsDialog = DetailsDialog(self) 
    6567        self.detailsDialog.cmdOK.clicked.connect(self.enabling) 
     
    8082        # no reason to have this widget resizable 
    8183        self.resize(self.minimumSizeHint()) 
     84        #self.setFixedSize(self.sizeHint()) 
    8285 
    8386        self.communicate = self._manager.communicator() 
     
    225228 
    226229        self.model = model 
    227         self.mapper.toFirst() 
    228230        self._data = GuiUtils.dataFromItem(self._model_item) 
    229231 
    230232        # Send the modified model item to DE for keeping in the model 
    231233        # Currently -unused 
    232         # self.communicate.updateModelFromPerspectiveSignal.emit(self._model_item) 
     234        #self.communicate.updateModelFromPerspectiveSignal.emit(self._model_item) 
    233235 
    234236        plot_data = GuiUtils.plotsFromCheckedItems(self._manager.filesWidget.model) 
     
    363365            if self._high_extrapolate: 
    364366                # 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) 
    366368 
    367369                if qmax_plot > Q_MAXIMUM: 
     
    429431    def onHelp(self): 
    430432        """ 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) 
    433436 
    434437    def setupSlots(self): 
Note: See TracChangeset for help on using the changeset viewer.