mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-27 01:34:24 +03:00
add note about overriding Image.show behaviour
This commit is contained in:
parent
66954ad176
commit
5e8854b8db
|
@ -2157,8 +2157,10 @@ class Image:
|
||||||
|
|
||||||
def show(self, title=None, command=None):
|
def show(self, title=None, command=None):
|
||||||
"""
|
"""
|
||||||
Displays this image. This method is mainly intended for
|
Displays this image. This method is mainly intended for debugging purposes.
|
||||||
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
|
The image is first saved to a temporary file. By default, it will be in
|
||||||
PNG format.
|
PNG format.
|
||||||
|
@ -2170,8 +2172,7 @@ class Image:
|
||||||
|
|
||||||
On Windows, the image is opened with the standard PNG display utility.
|
On Windows, the image is opened with the standard PNG display utility.
|
||||||
|
|
||||||
:param title: Optional title to use for the image window,
|
:param title: Optional title to use for the image window, where possible.
|
||||||
where possible.
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if command is not None:
|
if command is not None:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user