interaction: flush stdout when printing to the console
[git-cola.git] / qtpy / QtPrintSupport.py
blobb821d4118cfc6db340110f946bebf71a0568eb73
1 # -*- coding: utf-8 -*-
3 # Copyright © 2009- The Spyder Development Team
5 # Licensed under the terms of the MIT License
6 # (see LICENSE.txt for details)
8 """
9 Provides QtPrintSupport classes and functions.
10 """
12 from . import PYQT5, PYQT4,PYSIDE2, PYSIDE, PythonQtError
15 if PYQT5:
16 from PyQt5.QtPrintSupport import *
17 elif PYSIDE2:
18 from PySide2.QtPrintSupport import *
19 elif PYQT4:
20 from PyQt4.QtGui import (QAbstractPrintDialog, QPageSetupDialog,
21 QPrintDialog, QPrintEngine, QPrintPreviewDialog,
22 QPrintPreviewWidget, QPrinter, QPrinterInfo)
23 elif PYSIDE:
24 from PySide.QtGui import (QAbstractPrintDialog, QPageSetupDialog,
25 QPrintDialog, QPrintEngine, QPrintPreviewDialog,
26 QPrintPreviewWidget, QPrinter, QPrinterInfo)
27 else:
28 raise PythonQtError('No Qt bindings could be found')