garden: use 4-space indents
[git-cola.git] / qtpy / QtWinExtras.py
blobbf2fb7853f580f09d5a99972f52bf28c4e846da3
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 Windows-specific utilities"""
10 import sys
12 from . import (
13 PYQT5,
14 PYQT6,
15 PYSIDE2,
16 PYSIDE6,
17 QtModuleNotInOSError,
18 QtModuleNotInQtVersionError,
21 if sys.platform == "win32":
22 if PYQT5:
23 from PyQt5.QtWinExtras import *
24 elif PYQT6:
25 raise QtModuleNotInQtVersionError(name="QtWinExtras")
26 elif PYSIDE2:
27 from PySide2.QtWinExtras import *
28 elif PYSIDE6:
29 raise QtModuleNotInQtVersionError(name="QtWinExtras")
30 else:
31 raise QtModuleNotInOSError(name="QtWinExtras")