resources: search for commands sibling to the running script
[git-cola.git] / qtpy / QtPdf.py
blobf98cbd0f020124126f2108281b0b24e2e3c87831
1 # -----------------------------------------------------------------------------
2 # Copyright © 2009- The Spyder Development Team
4 # Licensed under the terms of the MIT License
5 # (see LICENSE.txt for details)
6 # -----------------------------------------------------------------------------
8 """Provides QtPdf classes and functions."""
10 from . import (
11 PYQT5,
12 PYQT6,
13 PYSIDE2,
14 PYSIDE6,
15 QtBindingMissingModuleError,
18 if PYQT5:
19 raise QtBindingMissingModuleError(name="QtPdf")
20 elif PYQT6:
21 # Available with version >=6.4.0
22 from PyQt6.QtPdf import *
23 elif PYSIDE2:
24 raise QtBindingMissingModuleError(name="QtPdf")
25 elif PYSIDE6:
26 # Available with version >=6.4.0
27 from PySide6.QtPdf import *