garden: add commands to the Garden recipe ~ https://gitlab.com/garden-rs/garden
[git-cola.git] / qtpy / QtX11Extras.py
blob51247c139705a893b4c849bba76624f7d3672cf8
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 Linux-specific utilities"""
10 import sys
12 from . import (
13 PYQT5,
14 PYQT6,
15 PYSIDE2,
16 PYSIDE6,
17 QtModuleNotInQtVersionError,
18 QtModuleNotInOSError,
21 if sys.platform == 'linux':
22 if PYQT5:
23 from PyQt5.QtX11Extras import *
24 elif PYQT6:
25 raise QtModuleNotInQtVersionError(name='QtX11Extras')
26 elif PYSIDE2:
27 from PySide2.QtX11Extras import *
28 elif PYSIDE6:
29 raise QtModuleNotInQtVersionError(name='QtX11Extras')
30 else:
31 raise QtModuleNotInOSError(name='QtX11Extras')