Changes in / [aa333e3:a80e182] in sasview
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
build_tools/conda_qt5_min_ubuntu.yml
r009c7a4 r1a1111f 3 3 - conda-forge 4 4 dependencies: 5 - matplotlib =2.1.05 - matplotlib 6 6 - scipy 7 7 - hdf5 -
src/sas/qtgui/MainWindow/DataExplorer.py
r428c3b2 r6ae7466 624 624 new_plots = [] 625 625 626 # Get the main data plot627 main_data = GuiUtils.dataFromItem(plot_item.parent())628 if main_data is None:629 # Try the current item630 main_data = GuiUtils.dataFromItem(plot_item)631 632 # Make sure main data for 2D is always displayed633 if main_data and not self.isPlotShown(main_data):634 if isinstance(main_data, Data2D):635 self.plotData([(plot_item, main_data)])636 637 626 # Check if this is merely a plot update 638 627 if self.updatePlot(plot_to_show): … … 649 638 # Plots with main data points on the same chart 650 639 # Get the main data plot 651 if main_data and not self.isPlotShown(main_data): 640 main_data = GuiUtils.dataFromItem(plot_item.parent()) 641 if main_data is None: 642 # Try the current item 643 main_data = GuiUtils.dataFromItem(plot_item) 644 if main_data is not None: 652 645 new_plots.append((plot_item, main_data)) 653 646 new_plots.append((plot_item, plot_to_show)) … … 655 648 if new_plots: 656 649 self.plotData(new_plots) 657 658 def isPlotShown(self, plot):659 """660 Checks currently shown plots and returns true if match661 """662 if not hasattr(plot, 'name'):663 return False664 ids_vals = [val.data.name for val in self.active_plots.values()]665 666 return plot.name in ids_vals667 650 668 651 def addDataPlot2D(self, plot_set, item): -
src/sas/qtgui/Plotting/BoxSum.py
r5eebcd6 rd6b8a1d 13 13 14 14 class BoxSum(QtWidgets.QDialog, Ui_BoxSumUI): 15 closeWidgetSignal = QtCore.pyqtSignal()16 15 def __init__(self, parent=None, model=None): 17 16 super(BoxSum, self).__init__() … … 45 44 self.setFixedSize(self.minimumSizeHint()) 46 45 47 # Handle the Closebutton click48 self.buttonBox.button(QtWidgets.QDialogButtonBox.Close).clicked.connect( lambda:self.closeWidgetSignal.emit())46 # Handle the Apply button click 47 self.buttonBox.button(QtWidgets.QDialogButtonBox.Close).clicked.connect(self.onClose) 49 48 49 def onClose(self): 50 """ 51 close the window containing this panel 52 """ 53 self.close() 54 -
src/sas/qtgui/Plotting/Plotter2D.py
r5eebcd6 r34f13a83 335 335 self.slicer.update() 336 336 337 def boxWidgetClosed():338 # Need to disconnect the signal!!339 self.boxwidget.closeWidgetSignal.disconnect()340 # reset box on "Edit Slicer Parameters" window close341 self.manager.parent.workspace().removeSubWindow(self.boxwidget_subwindow)342 self.boxwidget = None343 344 337 # Get the BoxSumCalculator model. 345 338 self.box_sum_model = self.slicer.model() … … 347 340 self.boxwidget = BoxSum(self, model=self.box_sum_model) 348 341 # Add the plot to the workspace 349 self.boxwidget_subwindow = self.manager.parent.workspace().addSubWindow(self.boxwidget) 350 self.boxwidget.closeWidgetSignal.connect(boxWidgetClosed) 351 342 self.manager.parent.workspace().addSubWindow(self.boxwidget) 352 343 self.boxwidget.show() 353 344
Note: See TracChangeset
for help on using the changeset viewer.