pyclip win_clip module¶
Provides clipboard functionality for Windows via the pywin32
package
-
class
pyclip.win_clip.
WindowsClipboard
[source]¶ -
-
paste
(encoding=None, text=None, errors=None)[source]¶ Returns clipboard contents
- Parameters
encoding (
Optional
[str
]) – same meaning as inbytes.encode
. Impliestext=True
text (
Optional
[bool
]) – if True, bytes object will be enerrors (
Optional
[str
]) – same meaning as inbytes.encode
. Impliestext=True
.
- Return type
Union
[str
,bytes
]- Returns
clipboard contents. Return value is bytes by default or str if any of
encoding
,text
, orerrors
is provided.
-