Changes in src/sas/qtgui/DataExplorer.py [965fbd8:83d6249] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/DataExplorer.py
r965fbd8 r83d6249 65 65 self._helpView = QtWebKit.QWebView() 66 66 67 # Fill in the perspectives combo 68 self.initPerspectives() 69 67 70 # Custom context menu 68 71 self.treeView.setContextMenuPolicy(QtCore.Qt.CustomContextMenu) … … 125 128 self.cbgraph.setEnabled(len(PlotHelper.currentPlots()) > 0) 126 129 self.cmdAppend.setEnabled(len(PlotHelper.currentPlots()) > 0) 130 131 def initPerspectives(self): 132 """ 133 Populate the Perspective combobox and define callbacks 134 """ 135 self.cbFitting.currentIndexChanged.connect(self.updatePerspectiveCombo) 136 # Set the index so we see the default (Fitting) 137 self.updatePerspectiveCombo(0) 127 138 128 139 def loadFromURL(self, url): … … 389 400 self.cbgraph.setCurrentIndex(ind) 390 401 402 def updatePerspectiveCombo(self, index): 403 """ 404 Notify the gui manager about the new perspective chosen. 405 """ 406 self.communicator.perspectiveChangedSignal.emit(self.cbFitting.currentText()) 407 391 408 def newPlot(self): 392 409 """
Note: See TracChangeset
for help on using the changeset viewer.