Skip to content

remove explicit calls to PyQt5 #356

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ dependencies = [
"scipy<=1.15.3", # breaks ADR if not included. Remove when statsmodels is updated
"docutils>=0.21",
"psycopg[binary]>=3.2.3",
"qtpy>=2.4.3"
]

[tool.setuptools.packages.find]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
import os

try:
from PyQt5 import QtCore, QtGui, QtWebEngineWidgets
from qtpy import QtCore, QtGui, QtWebEngineWidgets

# Classes for saving PDF representation
# pagedef = {width}X{height}X{0=port|1=land}X{left}X{right}X{top}X{bottom} all in mm
from PyQt5.QtCore import QTimer
from qtpy.QtCore import QTimer

has_qt = True
except Exception:
Expand Down
2 changes: 1 addition & 1 deletion src/ansys/dynamicreporting/core/utils/report_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from .encoders import PayloaddataEncoder

try:
from PyQt5 import QtCore, QtGui
from qtpy import QtCore, QtGui

has_qt = True
except ImportError:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from requests import JSONDecodeError

try:
from PyQt5 import QtCore, QtGui, QtWidgets
from qtpy import QtCore, QtGui, QtWidgets

has_qt = True
except ImportError:
Expand Down