From 0b5531b33ed7d89c363e5a130002c6b48ba32bc5 Mon Sep 17 00:00:00 2001 From: Don Kirkby Date: Sat, 8 Apr 2023 09:02:10 -0700 Subject: [PATCH] Change Pillow tutorial stub to use show() method. --- docs/demo/pillow/tutorial.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/demo/pillow/tutorial.md b/docs/demo/pillow/tutorial.md index 2da5742c..3b9fc767 100644 --- a/docs/demo/pillow/tutorial.md +++ b/docs/demo/pillow/tutorial.md @@ -6,8 +6,8 @@ modules: pillow files: hopper.jpg --- -This is a starting point for a Pillow tutorial. Until the `Image.show()` method -is monkey patched, use the `LivePillowImage` workaround. +This is a starting point for a Pillow tutorial. See the [Pillow docs] for +inspiration. ### Canvas from PIL import Image @@ -19,5 +19,6 @@ is monkey patched, use the `LivePillowImage` workaround. round(image.width*scale), round(image.height*scale))) - live_image = LivePillowImage(image) - live_image.display((-image.width/2, image.height/2)) + image.show() + +[Pillow docs]: https://pillow.readthedocs.io/en/stable/handbook/tutorial.html