add note about overriding Image.show behaviour

This commit is contained in:
nulano 2020-06-15 14:54:38 +02:00
parent 66954ad176
commit 5e8854b8db

View File

@ -2157,8 +2157,10 @@ class Image:
def show(self, title=None, command=None):
"""
Displays this image. This method is mainly intended for
debugging purposes.
Displays this image. This method is mainly intended for debugging purposes.
This method calls :py:func:`PIL.ImageShow.show` internally. You can use
:py:func:`PIL.ImageShow.register` to override its default behaviour.
The image is first saved to a temporary file. By default, it will be in
PNG format.
@ -2170,8 +2172,7 @@ class Image:
On Windows, the image is opened with the standard PNG display utility.
:param title: Optional title to use for the image window,
where possible.
:param title: Optional title to use for the image window, where possible.
"""
if command is not None: