code cosmetics and give some hint on the usage of the overview window in the status bar

This commit is contained in:
Sebastian Wehling-Benatelli 2015-07-07 10:45:42 +02:00
parent 3dd02d7f0c
commit e051be8a06

View File

@ -124,7 +124,10 @@ class MainWindow(QMainWindow):
# create central matplotlib figure canvas widget
self.DataPlot = MPLWidget(parent=self, xlabel=xlab, ylabel=None,
title=plottitle)
self.DataPlot.mpl_connect('button_press_event', self.pickOnStation)
self.DataPlot.mpl_connect('button_press_event',
self.pickOnStation)
self.DataPlot.mpl_connect('axes_enter_event',
lambda event: self.tutorUser())
_layout.addWidget(self.DataPlot)
openIcon = self.style().standardIcon(QStyle.SP_DirOpenIcon)
@ -581,6 +584,9 @@ class MainWindow(QMainWindow):
"PyLoT - seismic processing the python way[*]")
self.setWindowModified(self.dirty)
def tutorUser(self):
self.updateStatus('select trace to pick on station ...', 10000)
def printEvent(self):
pass