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:
@ -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:
|
||||||
|
Reference in New Issue
Block a user