mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-03 21:24:31 +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:
|
||||
try:
|
||||
from PyQt5.QtGui import QImage, qRgb
|
||||
from PyQt5.QtGui import QImage, qRgba
|
||||
except:
|
||||
from PyQt4.QtGui import QImage, qRgb
|
||||
from PyQt4.QtGui import QImage, qRgba
|
||||
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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user