File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change
1
+ import os
2
+ from pathlib import Path
3
+
1
4
import matplotlib as mpl
2
5
import napari
3
6
from matplotlib .backends .backend_qt5agg import (
4
7
FigureCanvas ,
5
8
NavigationToolbar2QT ,
6
9
)
7
- from qtpy .QtWidgets import QVBoxLayout , QWidget
8
10
from qtpy .QtGui import QIcon
9
- from pathlib import Path
10
- import os
11
+ from qtpy .QtWidgets import QVBoxLayout , QWidget
11
12
12
13
mpl .rc ("axes" , edgecolor = "white" )
13
14
mpl .rc ("axes" , facecolor = "#262930" )
@@ -123,7 +124,6 @@ def draw(self) -> None:
123
124
This is a no-op, and is intended for derived classes to override.
124
125
"""
125
126
126
-
127
127
def _on_update_layers (self ) -> None :
128
128
"""This function is called when self.layers is updated via self.update_layers()
129
129
@@ -163,8 +163,9 @@ def _update_buttons_checked(self):
163
163
QIcon (os .path .join (ICON_ROOT , "Pan_checked.png" ))
164
164
)
165
165
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
+ )
168
169
if "zoom" in self ._actions :
169
170
if self ._actions ["zoom" ].isChecked ():
170
171
self ._actions ["zoom" ].setIcon (
You can’t perform that action at this time.
0 commit comments