File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 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+
14import matplotlib as mpl
25import napari
36from matplotlib .backends .backend_qt5agg import (
47 FigureCanvas ,
58 NavigationToolbar2QT ,
69)
7- from qtpy .QtWidgets import QVBoxLayout , QWidget
810from qtpy .QtGui import QIcon
9- from pathlib import Path
10- import os
11+ from qtpy .QtWidgets import QVBoxLayout , QWidget
1112
1213mpl .rc ("axes" , edgecolor = "white" )
1314mpl .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 (
You can’t perform that action at this time.
0 commit comments