diff: make the context menu more intuitive
[git-cola.git] / qtpy / QtPurchasing.py
blob00141a25988a65fd157e2341741bbd1900c3274e
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 QtPurchasing classes and functions."""
10 from . import (
11 PYQT5,
12 PYQT6,
13 PYSIDE2,
14 PYSIDE6,
15 QtBindingMissingModuleError,
16 QtModuleNotInstalledError,
19 if PYQT5:
20 try:
21 from PyQt5.QtPurchasing import *
22 except ModuleNotFoundError as error:
23 raise QtModuleNotInstalledError(
24 name='QtPurchasing', missing_package='PyQtPurchasing'
25 ) from error
26 elif PYQT6:
27 raise QtBindingMissingModuleError(name='QtPurchasing')
28 elif PYSIDE2:
29 raise QtBindingMissingModuleError(name='QtPurchasing')
30 elif PYSIDE6:
31 raise QtBindingMissingModuleError(name='QtPurchasing')