Do not attempt to subclass QImage if Qt is not installed

This commit is contained in:
Andrew Murray 2015-05-07 20:26:26 +10:00
parent b318595666
commit fa1c4bffaf

View File

@ -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):