Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 727ccb5

Browse files
committedMay 10, 2022
Run pre-commit
1 parent 5ed2084 commit 727ccb5

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed
 

‎src/napari_matplotlib/base.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1+
import os
2+
from pathlib import Path
3+
14
import matplotlib as mpl
25
import napari
36
from matplotlib.backends.backend_qt5agg import (
47
FigureCanvas,
58
NavigationToolbar2QT,
69
)
7-
from qtpy.QtWidgets import QVBoxLayout, QWidget
810
from qtpy.QtGui import QIcon
9-
from pathlib import Path
10-
import os
11+
from qtpy.QtWidgets import QVBoxLayout, QWidget
1112

1213
mpl.rc("axes", edgecolor="white")
1314
mpl.rc("axes", facecolor="#262930")
@@ -123,7 +124,6 @@ def draw(self) -> None:
123124
This is a no-op, and is intended for derived classes to override.
124125
"""
125126

126-
127127
def _on_update_layers(self) -> None:
128128
"""This function is called when self.layers is updated via self.update_layers()
129129
@@ -163,8 +163,9 @@ def _update_buttons_checked(self):
163163
QIcon(os.path.join(ICON_ROOT, "Pan_checked.png"))
164164
)
165165
else:
166-
self._actions["pan"].setIcon(QIcon(os.path.join(ICON_ROOT,
167-
"Pan.png")))
166+
self._actions["pan"].setIcon(
167+
QIcon(os.path.join(ICON_ROOT, "Pan.png"))
168+
)
168169
if "zoom" in self._actions:
169170
if self._actions["zoom"].isChecked():
170171
self._actions["zoom"].setIcon(

0 commit comments

Comments
 (0)
Please sign in to comment.