mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 18:56:17 +03:00
Do not attempt to subclass QImage if Qt is not installed
This commit is contained in:
parent
b318595666
commit
fa1c4bffaf
|
@ -147,7 +147,8 @@ def toqpixmap(im):
|
||||||
# @param im A PIL Image object, or a file name (given either as Python
|
# @param im A PIL Image object, or a file name (given either as Python
|
||||||
# string or a PyQt string object).
|
# string or a PyQt string object).
|
||||||
|
|
||||||
class ImageQt(QImage):
|
if qt_is_installed:
|
||||||
|
class ImageQt(QImage):
|
||||||
|
|
||||||
def __init__(self, im):
|
def __init__(self, im):
|
||||||
im_data = _toqclass_helper(im)
|
im_data = _toqclass_helper(im)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user