From 8dc57ef7aa185f7113b9ab1476c40917ed3449dd Mon Sep 17 00:00:00 2001 From: payno Date: Mon, 28 Aug 2023 09:21:49 +0200 Subject: [PATCH] fix ImageStack: WaiterOverlay has been renamed WaitingOverlay --- src/silx/gui/plot/ImageStack.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/silx/gui/plot/ImageStack.py b/src/silx/gui/plot/ImageStack.py index 9a9fc27d2b..8bbf2bb83a 100644 --- a/src/silx/gui/plot/ImageStack.py +++ b/src/silx/gui/plot/ImageStack.py @@ -35,7 +35,7 @@ from silx.gui.widgets.FrameBrowser import HorizontalSliderWithBrowser import typing import logging -from silx.gui.widgets.waiteroverlay import WaiterOverlay +from silx.gui.widgets.WaitingOverlay import WaitingOverlay _logger = logging.getLogger(__name__) @@ -200,7 +200,7 @@ def __init__(self, parent=None) -> None: # main widget self._plot = Plot2D(parent=self) self._plot.setAttribute(qt.Qt.WA_DeleteOnClose, True) - self._waiterOverlay = WaiterOverlay(self._plot) + self._waitingOverlay = WaitingOverlay(self._plot) self.setWindowTitle("Image stack") self.setCentralWidget(self._plot) @@ -225,7 +225,7 @@ def __init__(self, parent=None) -> None: def close(self) -> bool: self._freeLoadingThreads() - self._waiterOverlay.close() + self._waitingOverlay.close() self._plot.close() super(ImageStack, self).close() @@ -497,12 +497,12 @@ def setCurrentUrl(self, url: typing.Union[DataUrl, str]) -> None: self._plot.clear() else: if self._current_url.path() in self._urlData: - self._waiterOverlay.setWaiting(activate=False) + self._waitingOverlay.setWaiting(activate=False) self._plot.addImage(self._urlData[url.path()], resetzoom=self._autoResetZoom) else: self._plot.clear() self._load(url) - self._waiterOverlay.setWaiting(True) + self._waitingOverlay.setWaiting(True) self._preFetch(self._getNNextUrls(self.__n_prefetch, url)) self._preFetch(self._getNPreviousUrls(self.__n_prefetch, url)) self._urlsTable.blockSignals(old_url_table)