Skip to content

Commit

Permalink
Remove PyQt6 imports outside Qt/__init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jrom99 committed Sep 24, 2024
1 parent 5e022af commit 73b8ed7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion data/startup/apbs_gui/qtwidgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ class ResizableMessageBox(QtWidgets.QMessageBox):
QtCore.QEvent.Type.ShowToParent,
)

from PyQt6 import QtCore
_UNWANTED_WINDOW_FLAGS = (
QtCore.Qt.WindowType.MSWindowsFixedSizeDialogHint |
0)
Expand Down
1 change: 0 additions & 1 deletion modules/pmg_qt/volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,6 @@ def colorDialogClosed(self, result):
"""
This is called when color dialog is closed.
"""
from PyQt6 import QtWidgets
if result == QtWidgets.QDialog.DialogCode.Accepted:
color = self.color_dialog.currentColor()
else:
Expand Down
1 change: 0 additions & 1 deletion modules/pymol/Qt/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,6 @@ def __enter__(self):
def __exit__(self, exc_type, e, tb):
if e is not None:
import traceback
from PyQt6 import QtWidgets
QMB = QtWidgets.QMessageBox

parent = QtWidgets.QApplication.focusWidget()
Expand Down

0 comments on commit 73b8ed7

Please sign in to comment.