每次复制前先清除剪切板
parent
bb56aaf274
commit
49f3c0f27c
3
shotit
3
shotit
|
@ -10,7 +10,7 @@ gi.require_version('Gtk', '3.0')
|
|||
from gi.repository import Gtk, Gdk, GLib, GdkPixbuf
|
||||
from PIL import Image, ImageFilter, ImageChops
|
||||
|
||||
app_id = 'fun.wkit.shotme'
|
||||
app_id = 'fun.wkit.shotit'
|
||||
|
||||
|
||||
def pixbuf_to_pil(pixbuf):
|
||||
|
@ -69,6 +69,7 @@ class Application(Gtk.Application):
|
|||
def copy(self, image):
|
||||
|
||||
# 写图片进剪切板
|
||||
self.clipboard.clear()
|
||||
self.clipboard.set_image(image)
|
||||
self.clipboard.store()
|
||||
|
||||
|
|
Loading…
Reference in New Issue