Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Dec 30, 2020
1 parent 49f782a commit 666cdb8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Tests/test_qt_image_toqimage.py
Expand Up @@ -12,13 +12,10 @@
from PIL.ImageQt import QImage

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


Expand Down Expand Up @@ -71,7 +68,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 666cdb8

Please sign in to comment.