r18120 by jghali - #11404: update the use of PIL to support Pillow
scribus-commit
scribus-commit at lists.scribus.net
Wed Jan 30 12:34:18 UTC 2013
Author: jghali
Date: Wed Jan 30 12:34:18 2013
New Revision: 18120
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18120
Log:
#11404: update the use of PIL to support Pillow
Modified:
trunk/Scribus/scribus/plugins/scriptplugin/scripts/FontSample.py
Modified: trunk/Scribus/scribus/plugins/scriptplugin/scripts/FontSample.py
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18120&path=/trunk/Scribus/scribus/plugins/scriptplugin/scripts/FontSample.py
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/scripts/FontSample.py (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/scripts/FontSample.py Wed Jan 30 12:34:18 2013
@@ -154,7 +154,7 @@
try:
- import Image
+ from PIL import Image
except ImportError,err:
print 'You need to install Python Imaging Library (PIL).'
print 'If using gentoo then you need to emerge /dev-python/imaging'
@@ -164,7 +164,7 @@
try:
- import ImageTk
+ from PIL import ImageTk
except ImportError,err:
print 'Module ImageTk not found, font preview disabled'
showPreviewPanel = 0
More information about the scribus-commit
mailing list