Changeset 5eebcd6 in sasview for src/sas/qtgui/Plotting/BoxSum.py


Ignore:
Timestamp:
Sep 26, 2018 6:23:29 AM (6 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
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
Message:

Close subWindow properly. SASVIEW-1115

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Plotting/BoxSum.py

    rd6b8a1d r5eebcd6  
    1313 
    1414class BoxSum(QtWidgets.QDialog, Ui_BoxSumUI): 
     15    closeWidgetSignal = QtCore.pyqtSignal() 
    1516    def __init__(self, parent=None, model=None): 
    1617        super(BoxSum, self).__init__() 
     
    4445        self.setFixedSize(self.minimumSizeHint()) 
    4546 
    46         # Handle the Apply button click 
    47         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()) 
    4849 
    49     def onClose(self): 
    50         """ 
    51         close the window containing this panel 
    52         """ 
    53         self.close() 
    54  
Note: See TracChangeset for help on using the changeset viewer.