-
-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #255 from jschueller/pyqt6
PR: Add additional Qt modules and more support and tests for PyQt6/PySide6
- Loading branch information
Showing
53 changed files
with
371 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# ----------------------------------------------------------------------------- | ||
# Copyright © 2009- The Spyder Development Team | ||
# | ||
# Licensed under the terms of the MIT License | ||
# (see LICENSE.txt for details) | ||
# ----------------------------------------------------------------------------- | ||
"""Provides QtDBus classes and functions.""" | ||
|
||
# Local imports | ||
from . import PYQT5, PYQT6, PYSIDE2, PYSIDE6, PythonQtError | ||
|
||
if PYQT5: | ||
from PyQt5.QtDBus import * | ||
elif PYQT6: | ||
from PyQt6.QtDBus import * | ||
elif PYSIDE6: | ||
from PySide6.QtDBus import * | ||
else: | ||
raise PythonQtError('No Qt bindings could be found') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
import warnings | ||
|
||
from . import PYQT5 | ||
from . import PYQT5, PYQT6 | ||
from . import PYSIDE2 | ||
from . import PYSIDE6 | ||
|
||
if PYQT5: | ||
from PyQt5.QtMultimedia import * | ||
elif PYQT6: | ||
from PyQt6.QtMultimedia import * | ||
elif PYSIDE6: | ||
from PySide6.QtMultimedia import * | ||
elif PYSIDE2: | ||
from PySide2.QtMultimedia import * | ||
else: | ||
raise PythonQtError('No Qt bindings could be found') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# ----------------------------------------------------------------------------- | ||
# Copyright © 2009- The Spyder Development Team | ||
# | ||
# Licensed under the terms of the MIT License | ||
# (see LICENSE.txt for details) | ||
# ----------------------------------------------------------------------------- | ||
"""Provides QtNetworkAuth classes and functions.""" | ||
|
||
# Local imports | ||
from . import PYQT5, PYQT6, PYSIDE2, PYSIDE6, PythonQtError | ||
|
||
if PYQT6: | ||
from PyQt6.QtNetworkAuth import * | ||
elif PYQT5: | ||
from PyQt5.QtNetworkAuth import * | ||
elif PYSIDE6: | ||
from PySide6.QtNetworkAuth import * | ||
else: | ||
raise PythonQtError('No Qt bindings could be found') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# ----------------------------------------------------------------------------- | ||
# Copyright © 2009- The Spyder Development Team | ||
# | ||
# Licensed under the terms of the MIT License | ||
# (see LICENSE.txt for details) | ||
# ----------------------------------------------------------------------------- | ||
"""Provides QtOpenGLWidgets classes and functions.""" | ||
|
||
# Local imports | ||
from . import PYQT5, PYQT6, PYSIDE2, PYSIDE6, PythonQtError | ||
|
||
if PYQT6: | ||
from PyQt6.QtOpenGLWidgets import * | ||
elif PYSIDE6: | ||
from PySide6.QtOpenGLWidgets import * | ||
else: | ||
raise PythonQtError('No Qt bindings could be found') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# ----------------------------------------------------------------------------- | ||
# Copyright © 2009- The Spyder Development Team | ||
# | ||
# Licensed under the terms of the MIT License | ||
# (see LICENSE.txt for details) | ||
# ----------------------------------------------------------------------------- | ||
"""Provides QtRemoteObjects classes and functions.""" | ||
|
||
# Local imports | ||
from . import PYQT5, PYQT6, PYSIDE2, PYSIDE6, PythonQtError | ||
|
||
if PYQT5: | ||
from PyQt5.QtRemoteObjects import * | ||
elif PYQT6: | ||
from PyQt6.QtRemoteObjects import * | ||
elif PYSIDE6: | ||
from PySide6.QtRemoteObjects import * | ||
elif PYSIDE2: | ||
from PySide2.QtRemoteObjects import * | ||
else: | ||
raise PythonQtError('No Qt bindings could be found') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# ----------------------------------------------------------------------------- | ||
# Copyright © 2009- The Spyder Development Team | ||
# | ||
# Licensed under the terms of the MIT License | ||
# (see LICENSE.txt for details) | ||
# ----------------------------------------------------------------------------- | ||
"""Provides QtSensors classes and functions.""" | ||
|
||
# Local imports | ||
from . import PYQT5, PYQT6, PYSIDE2, PYSIDE6, PythonQtError | ||
|
||
if PYQT5: | ||
from PyQt5.QtSensors import * | ||
elif PYQT6: | ||
from PyQt6.QtSensors import * | ||
elif PYSIDE6: | ||
from PySide6.QtSensors import * | ||
elif PYSIDE2: | ||
from PySide2.QtSensors import * | ||
else: | ||
raise PythonQtError('No Qt bindings could be found') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.