Skip to content

Commit

Permalink
Merge pull request #60073 from nicogodet/add-warning-pyqt5to6
Browse files Browse the repository at this point in the history
[pyqt5to6] Add warning if PyQt5 if found
  • Loading branch information
troopa81 authored Jan 7, 2025
2 parents 31b18d8 + 9515c1a commit 8e7781d
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 8e7781d

Please sign in to comment.