From 1c4c81164fb0bf6a00b60c48118f34bffc933cbe Mon Sep 17 00:00:00 2001 From: TUD278427 <TUD278427@tudelft.net> Date: Thu, 4 Jun 2020 11:51:07 +0200 Subject: [PATCH] finally able to fix this stupid bug from qtt --- core_tools/utility/powerpoint.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/core_tools/utility/powerpoint.py b/core_tools/utility/powerpoint.py index 324aacb2..561b4767 100644 --- a/core_tools/utility/powerpoint.py +++ b/core_tools/utility/powerpoint.py @@ -265,10 +265,6 @@ try: elif isinstance(fig, int): fig = plt.figure(fig) fig.savefig(fname) - elif isinstance(fig, QtWidgets.QWidget): - # generic method - figtemp = fig.plotwin.grab() - figtemp.save(fname) elif isinstance(fig, QtWidgets.QWidget): try: figtemp = QtGui.QPixmap.grabWidget(fig) -- GitLab