Skip to content

Commit 8576586

Browse files
committed
clipboard in tkinter and turtle
1 parent 28d808a commit 8576586

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tkinter/clipboard/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,13 @@ except Exception as ex:
2121
print('ERROR:', ex)
2222
```
2323

24+
`Clipboard` can use `type=` to set data type and then you can't get them using differnt `type`. As default it use `"STRING"` type
25+
26+
27+
```python
28+
root.clipboard_clear()
29+
root.clipboard_append("Hello")
30+
root.clipboard_append("World", type="IMAGE")
31+
print('clipboard:', root.clipboard_get(type="IMAGE"))
32+
# World # it skiped "Hello"
33+
```

0 commit comments

Comments
 (0)