Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
MalteBastelt committed Jun 3, 2023
1 parent 587c328 commit 4815872
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions mad_gui/plot_tools/plots/sensor_plot_mode_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,14 @@ def handle_key_press(self, ev):
self.handle_mouse_click(e, pos=local)
ev.accept()
e.accept()
return True
if ev.key() == Qt.Key_Escape:
ev.accept()
if self._partial_label is not None:
self._clear_partial_label()
# This indicates that the event will not probagate further
return True
return False

def handle_mouse_movement(self, ev):
if not self._active:
Expand Down
3 changes: 1 addition & 2 deletions mad_gui/plugins/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
from mad_gui.models.local import PlotData
from mad_gui.plot_tools.labels import BaseRegionLabel, BaseEventLabel
from mad_gui.plugins.base import BaseAlgorithm, BaseExporter, BaseImporter
from typing import Dict

from mad_gui.state_keeper import StateKeeper
from typing import Dict


class ActivityLabel(BaseRegionLabel):
Expand Down

0 comments on commit 4815872

Please sign in to comment.