From effa65cb386638aa064ad92b17c9e91449fd461a Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Mon, 28 Dec 2020 13:04:25 +0200 Subject: [PATCH] Refactor --- Tests/test_qt_image_qapplication.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Tests/test_qt_image_qapplication.py b/Tests/test_qt_image_qapplication.py index 8d76eca3c..06bd27c00 100644 --- a/Tests/test_qt_image_qapplication.py +++ b/Tests/test_qt_image_qapplication.py @@ -8,13 +8,10 @@ if ImageQt.qt_is_installed: from PIL.ImageQt import QPixmap if ImageQt.qt_version == "side6": - from PySide6 import QtGui from PySide6.QtWidgets import QApplication, QHBoxLayout, QLabel, QWidget elif ImageQt.qt_version == "5": - from PyQt5 import QtGui from PyQt5.QtWidgets import QApplication, QHBoxLayout, QLabel, QWidget elif ImageQt.qt_version == "side2": - from PySide2 import QtGui from PySide2.QtWidgets import QApplication, QHBoxLayout, QLabel, QWidget class Example(QWidget): @@ -25,7 +22,7 @@ if ImageQt.qt_is_installed: qimage = ImageQt.ImageQt(img) - pixmap1 = QtGui.QPixmap.fromImage(qimage) + pixmap1 = ImageQt.QPixmap.fromImage(qimage) QHBoxLayout(self) # hbox