From 04c68070ec7481c0ffbf40471684d2e261de4194 Mon Sep 17 00:00:00 2001 From: xiaodaxia Date: Fri, 31 May 2024 18:13:44 +0800 Subject: [PATCH] using QT5 instead of PYQT5 --- guidata/configtools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guidata/configtools.py b/guidata/configtools.py index 8aadc0a..6c7b2b7 100644 --- a/guidata/configtools.py +++ b/guidata/configtools.py @@ -289,10 +289,10 @@ def font_is_installed(font: str) -> list[str]: list[str]: list of installed fonts """ # Importing Qt here because this module should be independent from it - from qtpy import PYQT5 + from qtpy import QT5 from qtpy import QtGui as QG # pylint: disable=import-outside-toplevel - if PYQT5: + if QT5: fontfamilies = QG.QFontDatabase().families() else: # Qt6