From 6c1f89ad39b7240ab1d1c1123422b99ae195bf01 Mon Sep 17 00:00:00 2001 From: wakonig_k Date: Sat, 31 Aug 2024 14:51:10 +0200 Subject: [PATCH] fix(pyqt slot): removed slot decorator to avoid problems with pyqt6 --- bec_widgets/utils/bec_widget.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bec_widgets/utils/bec_widget.py b/bec_widgets/utils/bec_widget.py index 39be8219..d4f18cba 100644 --- a/bec_widgets/utils/bec_widget.py +++ b/bec_widgets/utils/bec_widget.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from qtpy.QtCore import Slot from qtpy.QtWidgets import QApplication, QWidget @@ -37,7 +39,6 @@ class BECWidget(BECConnector): if hasattr(qapp, "theme_signal"): qapp.theme_signal.theme_updated.connect(self._update_theme) - @Slot(str) def _update_theme(self, theme: str): """Update the theme.""" if theme is None: