Skip to content

Commit

Permalink
[pyqt5to6] Add warning if PyQt5 if found
Browse files Browse the repository at this point in the history
  • Loading branch information
nicogodet authored Jan 7, 2025
1 parent 9320a45 commit 5294db3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/pyqt5_to_pyqt6/pyqt5_to_pyqt6.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@
from collections.abc import Sequence
from enum import Enum

try:
import PyQt5

print("WARNING: PyQt5 has been found. It may result in wrong behavior.\n)
except ImportError:
pass

from PyQt6 import (
Qsci,
QtCore,
Expand Down

0 comments on commit 5294db3

Please sign in to comment.