File tree 2 files changed +19
-2
lines changed
2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ root.clipboard_clear()
8
8
root.clipboard_append(" Hello " )
9
9
root.clipboard_append(" World" )
10
10
print (' clipboard:' , root.clipboard_get())
11
- # Hello World
11
+ # clipboard: Hello World
12
12
```
13
13
14
14
` Clipboard ` can rise exception so you can use
@@ -28,6 +28,10 @@ except Exception as ex:
28
28
root.clipboard_clear()
29
29
root.clipboard_append(" Hello" )
30
30
root.clipboard_append(" World" , type = " IMAGE" )
31
+
31
32
print (' clipboard:' , root.clipboard_get(type = " IMAGE" ))
32
- # World # it skiped "Hello"
33
+ # clipboard: World # it skiped "Hello"
34
+
35
+ print (' clipboard:' , root.clipboard_get())
36
+ # clipboard: Hello # it skiped "World"
33
37
```
Original file line number Diff line number Diff line change @@ -29,3 +29,16 @@ except Exception as ex:
29
29
print (' ERROR:' , ex)
30
30
```
31
31
32
+ ` Clipboard ` can use ` type= ` to set data type and then you can't get them using differnt ` type ` . As default it use ` "STRING" ` type
33
+
34
+ ``` python
35
+ root.clipboard_clear()
36
+ root.clipboard_append(" Hello" )
37
+ root.clipboard_append(" World" , type = " IMAGE" )
38
+
39
+ print (' clipboard:' , root.clipboard_get(type = " IMAGE" ))
40
+ # clipboard: World # it skiped "Hello"
41
+
42
+ print (' clipboard:' , root.clipboard_get())
43
+ # clipboard: Hello # it skiped "World"
44
+ ```
You can’t perform that action at this time.
0 commit comments