mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-05-04 07:53:40 +03:00
Fix bad importÃ
This commit is contained in:
parent
f3284e57a6
commit
37252a67cc
|
@ -22,11 +22,11 @@ import sys
|
||||||
|
|
||||||
if 'PyQt4.QtGui' not in sys.modules:
|
if 'PyQt4.QtGui' not in sys.modules:
|
||||||
try:
|
try:
|
||||||
from PyQt5.QtGui import QImage, qRgb
|
from PyQt5.QtGui import QImage, qRgba
|
||||||
except:
|
except:
|
||||||
from PyQt4.QtGui import QImage, qRgb
|
from PyQt4.QtGui import QImage, qRgba
|
||||||
else: #PyQt4 is used
|
else: #PyQt4 is used
|
||||||
from PyQt4.QtGui import QImage, qRgb
|
from PyQt4.QtGui import QImage, qRgba
|
||||||
|
|
||||||
##
|
##
|
||||||
# (Internal) Turns an RGB color into a Qt compatible color integer.
|
# (Internal) Turns an RGB color into a Qt compatible color integer.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user