[add] user_help to status bar
[bugfix] missing change to mouseevent button
This commit is contained in:
parent
d6400562d6
commit
a1ee8d408c
@ -1 +1 @@
|
|||||||
5342-dirty
|
d640-dirty
|
||||||
|
@ -2136,7 +2136,10 @@ class PickDlg(QDialog):
|
|||||||
def on_motion(self, event):
|
def on_motion(self, event):
|
||||||
x = event.xdata
|
x = event.xdata
|
||||||
if x is not None:
|
if x is not None:
|
||||||
self.statusbar.showMessage('T = {}, t = {} [s]'.format(self.stime+x, x))
|
time_code = 'T = {}, t = {} [s]'.format(self.stime+x, x)
|
||||||
|
user_help = ' - Left-Click to Drag | Right-Click to Pan-Zoom |' \
|
||||||
|
' Mousewheel to Zoom | Middle-Click to Delete Pick'
|
||||||
|
self.statusbar.showMessage(time_code + user_help)
|
||||||
|
|
||||||
def onpick(self, event):
|
def onpick(self, event):
|
||||||
if event.mouseevent.button == 1:
|
if event.mouseevent.button == 1:
|
||||||
@ -2181,7 +2184,7 @@ class PickDlg(QDialog):
|
|||||||
self.statusbar.showMessage(message, 10e3)
|
self.statusbar.showMessage(message, 10e3)
|
||||||
|
|
||||||
def onpick_delete(self, event):
|
def onpick_delete(self, event):
|
||||||
if not event.mouseevent.button == 3:
|
if not event.mouseevent.button == 2:
|
||||||
return
|
return
|
||||||
x = event.mouseevent.xdata
|
x = event.mouseevent.xdata
|
||||||
self.remove_pick_by_x(x)
|
self.remove_pick_by_x(x)
|
||||||
|
Loading…
Reference in New Issue
Block a user