Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jan Zelenka
prasopes
Commits
67ec9b57
Commit
67ec9b57
authored
Oct 06, 2019
by
Yan
Browse files
Clipboard operation improved
parent
044f9608
Changes
1
Hide whitespace changes
Inline
Side-by-side
prasopes/imagetools.py
View file @
67ec9b57
...
...
@@ -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))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment