def pointSpectrum(self):
"""
Get spectrum of selected point.
Note: This function just sets up the signal-slot connection for the \
MPL window. It executes all the way through
Action
------
Left mouse-click : Select vertex point
"""
if self.cid is None:
self.cid = self.img_BW.mpl.mpl_connect('button_press_event',
lambda event: self._pointClick(event, self._pointSpectrumPlot))
self.img_BW.mpl.setCursor(_QCursor(_QtCore.Qt.CrossCursor))
self.setCursor(_QCursor(_QtCore.Qt.CrossCursor))
评论列表
文章目录