From 28da0ee33b6a8f3ba795148f194dd56413d0ae3b Mon Sep 17 00:00:00 2001 From: payno Date: Thu, 20 Jul 2023 09:42:22 +0200 Subject: [PATCH] WaiterOverlay: fix parenting since is a QWidget --- src/silx/gui/utils/waiteroverlay.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/silx/gui/utils/waiteroverlay.py b/src/silx/gui/utils/waiteroverlay.py index a3b274a162..6b38ba36e1 100644 --- a/src/silx/gui/utils/waiteroverlay.py +++ b/src/silx/gui/utils/waiteroverlay.py @@ -11,13 +11,13 @@ def __init__(self, parent: qt.QWidget) -> None: :param qt.QWidget underlying_widget: widget on top of which we want to displat the "processing/waiting wheel" :param str waiting_text: text to apply near the processing wheel """ - super().__init__() - + super().__init__(parent) if isinstance(parent, PlotWidget): parent = parent.getWidgetHandle() if not isinstance(parent, qt.QWidget): raise TypeError(f"underlying_widget is expected to be an instance of QWidget. {type(parent)} provided.") + self._waitingButton = WaitingPushButton( parent=parent, )