mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 09:14:27 +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):
|
||||
"""
|
||||
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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user