mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-18 19:24:47 +03:00
flake8
This commit is contained in:
parent
941526a831
commit
b6e143bd1f
|
@ -5,7 +5,7 @@ from PIL import ImageQt
|
||||||
|
|
||||||
|
|
||||||
if ImageQt.qt_is_installed:
|
if ImageQt.qt_is_installed:
|
||||||
from PIL.ImageQt import QImage, QPixmap
|
from PIL.ImageQt import QImage
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from PyQt5 import QtGui
|
from PyQt5 import QtGui
|
||||||
|
@ -35,6 +35,8 @@ class TestToQImage(PillowQtTestCase, PillowTestCase):
|
||||||
|
|
||||||
app = QtGui.QApplication([])
|
app = QtGui.QApplication([])
|
||||||
ex = Example()
|
ex = Example()
|
||||||
|
assert(app) # Silence warning
|
||||||
|
assert(ex) # Silence warning
|
||||||
|
|
||||||
|
|
||||||
if ImageQt.qt_is_installed:
|
if ImageQt.qt_is_installed:
|
||||||
|
@ -43,7 +45,7 @@ if ImageQt.qt_is_installed:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(Example, self).__init__()
|
super(Example, self).__init__()
|
||||||
|
|
||||||
img = hopper().resize((1000,1000))
|
img = hopper().resize((1000, 1000))
|
||||||
|
|
||||||
qimage = ImageQt.ImageQt(img)
|
qimage = ImageQt.ImageQt(img)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user