Skip to content
Snippets Groups Projects
Commit 70dbba96 authored by Kien Le's avatar Kien Le
Browse files

Remove ruler text on ESC key pressed

parent bf80e56a
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !96. Comments created here will be created in the context of that merge request.
......@@ -461,6 +461,11 @@ class PlottingWidget(QtWidgets.QScrollArea):
for w in self.peer_plotting_widgets:
w.set_rulers_invisible()
w.zoom_marker1_shown = False
try:
self.ruler_text.remove()
self.ruler_text = None
except AttributeError:
pass
w.draw()
return super(PlottingWidget, self).keyPressEvent(event)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment