Changeset 5236449 in sasview for src/sas/qtgui/DataExplorer.py
- Timestamp:
- Mar 8, 2017 7:35:49 AM (7 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- cbcdd2c
- Parents:
- 86f88d1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/DataExplorer.py
r83d6249 r5236449 82 82 self.communicator.activeGraphsSignal.connect(self.updateGraphCombo) 83 83 self.communicator.activeGraphName.connect(self.updatePlotName) 84 #self.communicator.updateTheoryFromPerspectiveSignal.connect(self.updateTheoryFromPerspective) 84 85 self.cbgraph.editTextChanged.connect(self.enableGraphCombo) 85 86 self.cbgraph.currentIndexChanged.connect(self.enableGraphCombo) 87 88 self._perspective = self.parent.perspective() 89 self._perspective.updateTheoryFromPerspectiveSignal.connect(self.updateTheoryFromPerspective) 86 90 87 91 # Proxy model for showing a subset of Data1D/Data2D content … … 787 791 new_plot = globals()[method_name](self, quickplot=True) 788 792 new_plot.data = data 789 new_plot.plot(marker='o') 793 #new_plot.plot(marker='o') 794 new_plot.plot() 790 795 791 796 # Update the global plot counter … … 903 908 pass 904 909 910 def updateTheoryFromPerspective(self, model_item): 911 """ 912 Receive an update theory item from a perspective 913 Make sure it is valid and if so, replace/add in the model 914 """ 915 # Assert the correct type 916 if not isinstance(model_item, QtGui.QStandardItem): 917 msg = "Wrong data type returned from calculations." 918 raise AttributeError, msg 919 920 # Check if there are any other items for this tab 921 # If so, delete them 922 current_tab_name = model_item.text()[:2] 923 for current_index in xrange(self.theory_model.rowCount()): 924 if current_tab_name in self.theory_model.item(current_index).text(): 925 self.theory_model.removeRow(current_index) 926 break 927 928 # Reset the view 929 self.model.reset() 930 931 # Reset the view 932 self.theory_model.appendRow(model_item) 933 934 # Pass acting as a debugger anchor 935 pass 936 905 937 906 938 if __name__ == "__main__":
Note: See TracChangeset
for help on using the changeset viewer.