Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cb = QClipboard(self)
- img = QImage(self.canvas.grab())
- cb.setImage(img)
- img = QPixmap(self.canvas.grab())
- self.cb.setPixmap(img)
- self.canvas.figure.savefig(self.temp_file, dpi = 300, type = 'png')
- temp_img = QImage(self.temp_file)
- cb.setImage(temp_img)
Add Comment
Please, Sign In to add comment