code cosmetics and give some hint on the usage of the overview window in the status bar
This commit is contained in:
parent
3dd02d7f0c
commit
e051be8a06
@ -124,7 +124,10 @@ class MainWindow(QMainWindow):
|
|||||||
# create central matplotlib figure canvas widget
|
# create central matplotlib figure canvas widget
|
||||||
self.DataPlot = MPLWidget(parent=self, xlabel=xlab, ylabel=None,
|
self.DataPlot = MPLWidget(parent=self, xlabel=xlab, ylabel=None,
|
||||||
title=plottitle)
|
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)
|
_layout.addWidget(self.DataPlot)
|
||||||
|
|
||||||
openIcon = self.style().standardIcon(QStyle.SP_DirOpenIcon)
|
openIcon = self.style().standardIcon(QStyle.SP_DirOpenIcon)
|
||||||
@ -581,6 +584,9 @@ class MainWindow(QMainWindow):
|
|||||||
"PyLoT - seismic processing the python way[*]")
|
"PyLoT - seismic processing the python way[*]")
|
||||||
self.setWindowModified(self.dirty)
|
self.setWindowModified(self.dirty)
|
||||||
|
|
||||||
|
def tutorUser(self):
|
||||||
|
self.updateStatus('select trace to pick on station ...', 10000)
|
||||||
|
|
||||||
def printEvent(self):
|
def printEvent(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user