Skip to content

Commit

Permalink
Merge pull request #74 from xiaodaxia-2008/fix_pyside2_error
Browse files Browse the repository at this point in the history
using QT5 instead of PYQT5
  • Loading branch information
PierreRaybaut authored May 31, 2024
2 parents deb24a2 + 04c6807 commit 415462c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions guidata/configtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 415462c

Please sign in to comment.