Skip to content

Commit

Permalink
using QT5 instead of PYQT5
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaodaxia committed May 31, 2024
1 parent deb24a2 commit 04c6807
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 04c6807

Please sign in to comment.