Changeset 304d082 in sasview for src/sas/qtgui/Plotting/Plotter.py


Ignore:
Timestamp:
Oct 31, 2017 8:00:59 AM (6 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
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:
6280464
Parents:
0849aec
Message:

More functionality conversion

File:
1 edited

Legend:

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

    r0849aec r304d082  
    2121    1D Plot widget for use with a QDialog 
    2222    """ 
    23     updatePlot = QtCore.pyqtSignal(tuple) 
    2423    def __init__(self, parent=None, manager=None, quickplot=False): 
    2524        super(PlotterWidget, self).__init__(parent, manager=manager, quickplot=quickplot) 
     
    4140        self.fit_result.symbol = 13 
    4241        self.fit_result.name = "Fit" 
    43  
    44         # Add a slot for receiving update signal from LinearFit 
    45         # NEW style signals 
    46         self.updatePlot.connect(self.onFitDisplay) 
    47         # OLD style signals 
    48         # QtCore.QObject.connect(self, QtCore.SIGNAL('updatePlot'), self.onFitDisplay) 
    4942 
    5043    @property 
     
    365358                    xlabel=self.xLogLabel, 
    366359                    ylabel=self.yLogLabel) 
     360        fit_dialog.updatePlot.connect(self.onFitDisplay) 
    367361        if fit_dialog.exec_() == QtWidgets.QDialog.Accepted: 
    368362            return 
Note: See TracChangeset for help on using the changeset viewer.