Skip to content

Commit

Permalink
Refactored & updated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
b-init committed Jul 3, 2023
1 parent 6ad9b56 commit 0d4ffb1
Show file tree
Hide file tree
Showing 8 changed files with 608 additions and 553 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ Python clipboard utility that works natively on python with its inbuilt modules
**-WORK IN PROGRESS-**

## Usage
Must call `open_clipboard()` before using any clipboard function. Preferably through an `if` statement.
Must call `open_clipboard()` before using any clipboard function which returns 0 on failure.
Should call `empty_clipboard()` before setting any data to clipboard.
Must call `close_clipboard()` at the end.
Must call `close_clipboard()` at the end or other applications may not be able to access the clipboard.

Example (to get unicode text from clipboard):
```
from . import clipette
import clipette
if clipette.open_clipboard():
text = clipette.get_UNICODETEXT()
Expand Down
Binary file added __pycache__/utils.cpython-39.pyc
Binary file not shown.
Loading

0 comments on commit 0d4ffb1

Please sign in to comment.