gitcmds: run "git diff" without taking a lock
[git-cola.git] / qtpy / QtMacExtras.py
blobd495c1eb018f2fadf7bcc3ea9f6503324fc52236
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 classes and functions specific to macOS and iOS operating systems"""
10 import sys
12 from . import (
13 PYQT5,
14 PYQT6,
15 PYSIDE2,
16 PYSIDE6,
17 QtModuleNotInQtVersionError,
18 QtModuleNotInOSError,
21 if sys.platform == 'darwin':
22 if PYQT5:
23 from PyQt5.QtMacExtras import *
24 elif PYQT6:
25 raise QtModuleNotInQtVersionError(name='QtMacExtras')
26 elif PYSIDE2:
27 from PySide2.QtMacExtras import *
28 elif PYSIDE6:
29 raise QtModuleNotInQtVersionError(name='QtMacExtras')
30 else:
31 raise QtModuleNotInOSError(name='QtMacExtras')