From f94cecafdab4f3de367742744b84a46de7286fb2 Mon Sep 17 00:00:00 2001 From: dalthviz Date: Thu, 13 Jan 2022 12:41:20 -0500 Subject: [PATCH] QtCore: Remove guiQt after utility functions assignment --- qtpy/QtCore.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qtpy/QtCore.py b/qtpy/QtCore.py index 0bb6a743..343896c9 100644 --- a/qtpy/QtCore.py +++ b/qtpy/QtCore.py @@ -71,6 +71,7 @@ if getattr(Qt, 'mightBeRichText', None) is None: from PySide6.QtGui import Qt as guiQt Qt.mightBeRichText = guiQt.mightBeRichText + del guiQt # obsolete in qt6 Qt.BackgroundColorRole = Qt.BackgroundRole @@ -99,6 +100,7 @@ try: from PySide2.QtGui import Qt as guiQt Qt.mightBeRichText = guiQt.mightBeRichText + del guiQt except ImportError: # Fails with PySide2 5.12.0 pass