Ticket #3425 (closed: fixed)
MantidPlot: Allow objects to connect to PeakPickerTool range changes
Reported by: | Mathieu Doucet | Owned by: | Mathieu Doucet |
---|---|---|---|
Priority: | major | Milestone: | Iteration 30 |
Component: | Mantid | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Robert Whitley |
Description
Letting an object connect to a PeakPickerTool signal giving selected range updates will be necessary for reflectometry. At the moment, PeakPickerTool only talks to the fit browser.
Design note: it would be very nice to separate the PeakPickerTool from the fit browser so that it can be re-used independently.
Change History
comment:2 Changed 9 years ago by Mathieu Doucet
- Owner set to Mathieu Doucet
- Status changed from new to accepted
To test, run the following script in ManditPlot. The updated range should be printed in the Scripting Console as you drag the vertical delimiters.
from PyQt4 import QtGui, QtCore import time def print_range(xmin, xmax): print xmin, xmax CreateWorkspace(DataX=[1,2,3,4],DataY=[1,1,1],DataE=[1,1,1],NSpec=1,OutputWorkspace="ws") qti.app.connect(qti.app.mantidUI, QtCore.SIGNAL("x_range_update(double,double)"), print_range) g = qti.app.mantidUI.pyPlotSpectraList(["ws"],[0],True) qti.app.selectMultiPeak()
comment:3 Changed 9 years ago by Mathieu Doucet
- Status changed from accepted to verify
- Resolution set to fixed
comment:4 Changed 9 years ago by Robert Whitley
- Status changed from verify to verifying
- Tester set to Robert Whitley
Note: See
TracTickets for help on using
tickets.
In [13495]: