mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +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
|
||||
# string or a PyQt string object).
|
||||
|
||||
class ImageQt(QImage):
|
||||
if qt_is_installed:
|
||||
class ImageQt(QImage):
|
||||
|
||||
def __init__(self, im):
|
||||
im_data = _toqclass_helper(im)
|
||||
|
|
Loading…
Reference in New Issue
Block a user