diff options
author | Picca Frédéric-Emmanuel <picca@synchrotron-soleil.fr> | 2018-07-31 16:22:25 +0200 |
---|---|---|
committer | Picca Frédéric-Emmanuel <picca@synchrotron-soleil.fr> | 2018-07-31 16:22:25 +0200 |
commit | 159ef14fb9e198bb0066ea14e6b980f065de63dd (patch) | |
tree | bc37c7d4ba09ee59deb708897fa0571709aec293 /silx/gui/plot3d/actions/io.py | |
parent | 270d5ddc31c26b62379e3caa9044dd75ccc71847 (diff) |
New upstream version 0.8.0+dfsg
Diffstat (limited to 'silx/gui/plot3d/actions/io.py')
-rw-r--r-- | silx/gui/plot3d/actions/io.py | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/silx/gui/plot3d/actions/io.py b/silx/gui/plot3d/actions/io.py index 5126000..f30abeb 100644 --- a/silx/gui/plot3d/actions/io.py +++ b/silx/gui/plot3d/actions/io.py @@ -39,12 +39,11 @@ import os import numpy -from silx.gui import qt -from silx.gui.plot.actions.io import PrintAction as _PrintAction +from silx.gui import qt, printer from silx.gui.icons import getQIcon from .Plot3DAction import Plot3DAction from ..utils import mng -from ..._utils import convertQImageToArray +from ...utils._image import convertQImageToArray _logger = logging.getLogger(__name__) @@ -157,11 +156,7 @@ class PrintAction(Plot3DAction): :rtype: QPrinter """ - # TODO This is a hack to sync with silx plot PrintAction - # This needs to be centralized - if _PrintAction._printer is None: - _PrintAction._printer = qt.QPrinter() - return _PrintAction._printer + return printer.getDefaultPrinter() def _triggered(self, checked=False): plot3d = self.getPlot3DWidget() |