dag: add ability to checkout branches from the DAG viewer
[git-cola.git] / qtpy / QtDBus.py
blob6d479fa5e9f35c89dda8d0b5f925835224d27303
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 QtDBus classes and functions."""
10 import sys
12 from . import (
13 PYQT5,
14 PYQT6,
15 PYSIDE2,
16 PYSIDE6,
17 QtBindingMissingModuleError,
18 QtModuleNotInOSError,
21 if PYQT5:
22 from PyQt5.QtDBus import *
23 elif PYQT6:
24 from PyQt6.QtDBus import *
25 elif PYSIDE2:
26 raise QtBindingMissingModuleError(name='QtDBus')
27 elif PYSIDE6:
28 if sys.platform != 'win32':
29 from PySide6.QtDBus import *
30 else:
31 raise QtModuleNotInOSError(name='QtDBus')