Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImageGrab grabclipboard() is supported on Linux #7160

Merged
merged 1 commit into from
May 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions docs/reference/ImageGrab.rst
Original file line number Diff line number Diff line change
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.