Clipboard module for dost. This module is used to interact with the Windows clipboard.
Examples:
>>> from dost import clipboard
>>> clipboard.set_data(data='Hello World!')
>>> clipboard.get_data()
'Hello World!'
It contains the following functions:
set_data(data)
: Set the clipboard data to the given string.
get_data()
: Get the clipboard data as a string.
get_data()
Get the clipboard data as a string.
Returns:
Type |
Description |
str
|
The clipboard data as a string. |
Examples:
>>> clipboard.get_data()
'Hello World!'
set_data(data)
Set the clipboard data to the given string.
Parameters:
Name |
Type |
Description |
Default |
data |
str
|
The data to set the clipboard to. |
required
|
Examples:
>>> clipboard.set_data(data='Hello World!')
>>> clipboard.get_data()
'Hello World!'