Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Jan 1, 2021
1 parent 4e3dc9a commit effa65c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Tests/test_qt_image_qapplication.py
Expand Up @@ -8,13 +8,10 @@
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):
Expand All @@ -25,7 +22,7 @@ def __init__(self):

qimage = ImageQt.ImageQt(img)

pixmap1 = QtGui.QPixmap.fromImage(qimage)
pixmap1 = ImageQt.QPixmap.fromImage(qimage)

QHBoxLayout(self) # hbox

Expand Down

0 comments on commit effa65c

Please sign in to comment.