25 lines
859 B
Diff
25 lines
859 B
Diff
scribus/plugins/scriptplugin/scripts/FontSample.py | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/scribus/plugins/scriptplugin/scripts/FontSample.py b/scribus/plugins/scriptplugin/scripts/FontSample.py
|
|
index 0219a32..1e9be38 100644
|
|
--- a/scribus/plugins/scriptplugin/scripts/FontSample.py
|
|
+++ b/scribus/plugins/scriptplugin/scripts/FontSample.py
|
|
@@ -154,7 +154,7 @@ if not os.path.exists(CONFIG_PATH):
|
|
|
|
|
|
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 @@ except ImportError,err:
|
|
|
|
|
|
try:
|
|
- import ImageTk
|
|
+ from PIL import ImageTk
|
|
except ImportError,err:
|
|
print 'Module ImageTk not found, font preview disabled'
|
|
showPreviewPanel = 0
|