Skip to content

Commit

Permalink
Update grabclipboard() documentation after python-pillow#6783
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed May 13, 2023
1 parent cc2fb84 commit 3719e02
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/reference/ImageGrab.rst
Expand Up @@ -39,13 +39,17 @@ or the clipboard to a PIL image memory.

.. py:function:: grabclipboard()
Take a snapshot of the clipboard image, if any. Only macOS and Windows are currently supported.
Take a snapshot of the clipboard image, if any.

.. versionadded:: 1.1.4 (Windows), 3.3.0 (macOS)
On Linux, ``wl-paste`` or ``xclip`` is required.

.. versionadded:: 1.1.4 (Windows), 3.3.0 (macOS), 9.4.0 (Linux)

:return: On Windows, an image, a list of filenames,
or None if the clipboard does not contain image data or filenames.
Note that if a list is returned, the filenames may not represent image files.

On Mac, an image,
or None if the clipboard does not contain image data.

On Linux, an image.

0 comments on commit 3719e02

Please sign in to comment.