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,6 +147,7 @@ def toqpixmap(im):
|
|||
# @param im A PIL Image object, or a file name (given either as Python
|
||||
# string or a PyQt string object).
|
||||
|
||||
if qt_is_installed:
|
||||
class ImageQt(QImage):
|
||||
|
||||
def __init__(self, im):
|
||||
|
|
Loading…
Reference in New Issue
Block a user