Changeset 8748751 in sasview
- Timestamp:
- Oct 26, 2018 5:35:55 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 8fad50b
- Parents:
- c18ca00
- Location:
- src/sas/qtgui
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/GuiManager.py
r6bc0840 r8748751 24 24 from sas.qtgui.Utilities.PluginManager import PluginManager 25 25 from sas.qtgui.Utilities.GridPanel import BatchOutputPanel 26 from sas.qtgui.Utilities.ResultPanel import ResultPanel 26 27 27 28 from sas.qtgui.Utilities.ReportDialog import ReportDialog … … 147 148 self.aboutWidget = AboutBox() 148 149 self.categoryManagerWidget = CategoryManager(self._parent, manager=self) 150 149 151 self.grid_window = None 150 152 self.grid_window = BatchOutputPanel(parent=self) … … 154 156 self.grid_subwindow.setVisible(False) 155 157 self.grid_window.windowClosedSignal.connect(lambda: self.grid_subwindow.setVisible(False)) 158 159 self.results_panel = ResultPanel(parent=self._parent, manager=self) 160 self.results_frame = self._workspace.workspace.addSubWindow(self.results_panel) 161 self.results_frame.setVisible(False) 162 self.results_panel.windowClosedSignal.connect(lambda: self.results_frame.setVisible(False)) 156 163 157 164 self._workspace.toolBar.setVisible(LocalConfig.TOOLBAR_SHOW) … … 444 451 """ 445 452 # disable not yet fully implemented actions 446 #self._workspace.actionOpen_Analysis.setVisible(False)447 453 self._workspace.actionUndo.setVisible(False) 448 454 self._workspace.actionRedo.setVisible(False) … … 451 457 self._workspace.actionImage_Viewer.setVisible(False) 452 458 self._workspace.actionCombine_Batch_Fit.setVisible(False) 453 self._workspace.actionFit_Results.setVisible(False)454 459 # orientation viewer set to invisible SASVIEW-1132 455 460 self._workspace.actionOrientation_Viewer.setVisible(False) … … 526 531 527 532 self.communicate.sendDataToGridSignal.connect(self.showBatchOutput) 533 self.communicate.resultPlotUpdateSignal.connect(self.showFitResults) 528 534 529 535 #============ FILE ================= … … 819 825 """ 820 826 """ 821 print("actionFit_Results TRIGGERED") 822 pass 827 self.showFitResults(None) 828 829 def showFitResults(self, output_data): 830 """ 831 Show bumps convergence plots 832 """ 833 self.results_frame.setVisible(True) 834 if output_data: 835 self.results_panel.onPlotResults(output_data) 823 836 824 837 def actionAdd_Custom_Model(self): -
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
rd7d55c7 r8748751 1558 1558 if param_dict is None: 1559 1559 return 1560 if hasattr(res, 'convergence') and len(res.convergence)>0: 1561 self.communicate.resultPlotUpdateSignal.emit(result[0]) 1560 1562 1561 1563 elapsed = result[1] -
src/sas/qtgui/Utilities/GuiUtils.py
r63467b6 r8748751 285 285 # Tell the data explorer to switch tabs 286 286 changeDataExplorerTabSignal = QtCore.pyqtSignal(int) 287 288 # Plot fitting results (FittingWidget->GuiManager) 289 resultPlotUpdateSignal = QtCore.pyqtSignal(list) 287 290 288 291 def updateModelItemWithPlot(item, update_data, name=""):
Note: See TracChangeset
for help on using the changeset viewer.