Skip to content

Commit

Permalink
Paste image to network view doesn't work with python 3 qLab#1405
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyquest committed Nov 13, 2023
1 parent fa2496a commit d0fbc3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/python/qlibutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -917,9 +917,9 @@ def paste_clipboard_to_netview(kwargs):
ba = Qt.QtCore.QByteArray();
buffer = Qt.QtCore.QBuffer(ba)
buffer.open(Qt.QtCore.QIODevice.WriteOnly)
image.save(buffer, "png")
image.save(buffer, "png")
buffer.close()
hda_def.addSection(image_name, str(buffer.data()))
hda_def.addSection(image_name, buffer.data().data())

# add image to network view
add_image_to_netview(embedded_img_prefix(image_name), pane, pwd)
Expand Down

0 comments on commit d0fbc3b

Please sign in to comment.