Changeset 5eebcd6 in sasview
- Timestamp:
- Sep 26, 2018 6:23:29 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:
- 9d23e4c
- Parents:
- 009c7a4
- Location:
- src/sas/qtgui/Plotting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Plotting/BoxSum.py
rd6b8a1d r5eebcd6 13 13 14 14 class BoxSum(QtWidgets.QDialog, Ui_BoxSumUI): 15 closeWidgetSignal = QtCore.pyqtSignal() 15 16 def __init__(self, parent=None, model=None): 16 17 super(BoxSum, self).__init__() … … 44 45 self.setFixedSize(self.minimumSizeHint()) 45 46 46 # Handle the Applybutton click47 self.buttonBox.button(QtWidgets.QDialogButtonBox.Close).clicked.connect( self.onClose)47 # Handle the Close button click 48 self.buttonBox.button(QtWidgets.QDialogButtonBox.Close).clicked.connect(lambda:self.closeWidgetSignal.emit()) 48 49 49 def onClose(self):50 """51 close the window containing this panel52 """53 self.close()54 -
src/sas/qtgui/Plotting/Plotter2D.py
r34f13a83 r5eebcd6 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 close 341 self.manager.parent.workspace().removeSubWindow(self.boxwidget_subwindow) 342 self.boxwidget = None 343 337 344 # Get the BoxSumCalculator model. 338 345 self.box_sum_model = self.slicer.model() … … 340 347 self.boxwidget = BoxSum(self, model=self.box_sum_model) 341 348 # Add the plot to the workspace 342 self.manager.parent.workspace().addSubWindow(self.boxwidget) 349 self.boxwidget_subwindow = self.manager.parent.workspace().addSubWindow(self.boxwidget) 350 self.boxwidget.closeWidgetSignal.connect(boxWidgetClosed) 351 343 352 self.boxwidget.show() 344 353
Note: See TracChangeset
for help on using the changeset viewer.