0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-13 19:21:50 +02:00

fix(pyqt slot): removed slot decorator to avoid problems with pyqt6

This commit is contained in:
2024-08-31 14:51:10 +02:00
parent 7fb938a850
commit 6c1f89ad39

View File

@ -1,3 +1,5 @@
from __future__ import annotations
from qtpy.QtCore import Slot from qtpy.QtCore import Slot
from qtpy.QtWidgets import QApplication, QWidget from qtpy.QtWidgets import QApplication, QWidget
@ -37,7 +39,6 @@ class BECWidget(BECConnector):
if hasattr(qapp, "theme_signal"): if hasattr(qapp, "theme_signal"):
qapp.theme_signal.theme_updated.connect(self._update_theme) qapp.theme_signal.theme_updated.connect(self._update_theme)
@Slot(str)
def _update_theme(self, theme: str): def _update_theme(self, theme: str):
"""Update the theme.""" """Update the theme."""
if theme is None: if theme is None: