Commit 67ec9b57 authored by Yan's avatar Yan
Browse files

Clipboard operation improved

parent 044f9608
......@@ -42,5 +42,5 @@ def paint_image(mass_spec, spect, painttarget=None):
def clip_spect_img(mass_spec, spect):
image = paint_image(mass_spec, spect)
QtWidgets.QApplication.clipboard().setImage(image)
QtWidgets.QApplication.clipboard().setPixmap(QtGui.QPixmap.fromImage(image))
[QtWidgets.QApplication.clipboard().setImage(image, i) for i in range(2)]
#QtWidgets.QApplication.clipboard().setPixmap(QtGui.QPixmap.fromImage(image))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment