hotkeys: make Cmd-M minimize the main window
[git-cola.git] / qtpy / QtDBus.py
blob1d41aab9679265e6f0aa2fe6a16d9e0659b5c4f8
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")