Skip to content

Commit

Permalink
move ]
Browse files Browse the repository at this point in the history
  • Loading branch information
Henri Wahl committed Apr 18, 2024
1 parent 4fc3ff9 commit 5508b82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Nagstamon/QUI/qt.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@
from PyQt6.QtCore import PYQT_VERSION_STR as QT_VERSION_STR

# get int-ed version parts
QT_VERSION_MAJOR, QT_VERSION_MINOR = [int(x) for x in QT_VERSION_STR.split('.')][0:2]
QT_VERSION_MAJOR, QT_VERSION_MINOR = [int(x) for x in QT_VERSION_STR.split('.')[0:2]]
# for later decision which differences have to be considered
QT_FLAVOR = 'PyQt6'
except ImportError:
try:
from PyQt5.QtCore import PYQT_VERSION_STR as QT_VERSION_STR
# get int-ed version parts
QT_VERSION_MAJOR, QT_VERSION_MINOR = [int(x) for x in QT_VERSION_STR.split('.')][0:2]
QT_VERSION_MAJOR, QT_VERSION_MINOR = [int(x) for x in QT_VERSION_STR.split('.')[0:2]]
# for later decision which differences have to be considered
QT_FLAVOR = 'PyQt5'
except ImportError:
Expand Down

0 comments on commit 5508b82

Please sign in to comment.