You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-python/soya/files/soya-pillow.patch

22 lines
607 B

https://bugs.gentoo.org/show_bug.cgi?id=471510
--- a/editor/__init__.py
+++ b/editor/__init__.py
@@ -52,7 +52,7 @@
if obj.face.material and obj.face.material.texture:
try:
- import Image, ImageTk
+ from PIL import Image, ImageTk
self.image = Image.open(os.path.join(soya.path[0], obj.face.material.texture.filename))
@@ -71,7 +71,7 @@
self.cancel = self.master.cancel
def label_conf(self, event = None):
- import Image, ImageTk
+ from PIL import Image, ImageTk
if self.image_width != self.label.winfo_width():
self.image_width = self.label.winfo_width()