ManyQt 0.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. manyqt-0.3.0/MANIFEST.in +3 -0
  2. manyqt-0.3.0/ManyQt/QAxContainer.py +54 -0
  3. manyqt-0.3.0/ManyQt/Qsci.py +29 -0
  4. manyqt-0.3.0/ManyQt/Qt3DAnimation.py +48 -0
  5. manyqt-0.3.0/ManyQt/Qt3DCore.py +48 -0
  6. manyqt-0.3.0/ManyQt/Qt3DExtras.py +48 -0
  7. manyqt-0.3.0/ManyQt/Qt3DInput.py +48 -0
  8. manyqt-0.3.0/ManyQt/Qt3DLogic.py +48 -0
  9. manyqt-0.3.0/ManyQt/Qt3DRender.py +48 -0
  10. manyqt-0.3.0/ManyQt/QtAsyncio.py +43 -0
  11. manyqt-0.3.0/ManyQt/QtAxContainer.py +54 -0
  12. manyqt-0.3.0/ManyQt/QtBluetooth.py +32 -0
  13. manyqt-0.3.0/ManyQt/QtChart.py +46 -0
  14. manyqt-0.3.0/ManyQt/QtCharts.py +47 -0
  15. manyqt-0.3.0/ManyQt/QtConcurrent.py +141 -0
  16. manyqt-0.3.0/ManyQt/QtCore.py +1286 -0
  17. manyqt-0.3.0/ManyQt/QtDBus.py +33 -0
  18. manyqt-0.3.0/ManyQt/QtDataVisualization.py +44 -0
  19. manyqt-0.3.0/ManyQt/QtDesigner.py +34 -0
  20. manyqt-0.3.0/ManyQt/QtGraphs.py +38 -0
  21. manyqt-0.3.0/ManyQt/QtGraphsWidgets.py +33 -0
  22. manyqt-0.3.0/ManyQt/QtGui.py +533 -0
  23. manyqt-0.3.0/ManyQt/QtHelp.py +33 -0
  24. manyqt-0.3.0/ManyQt/QtHttpServer.py +34 -0
  25. manyqt-0.3.0/ManyQt/QtLocation.py +32 -0
  26. manyqt-0.3.0/ManyQt/QtMacExtras.py +35 -0
  27. manyqt-0.3.0/ManyQt/QtMultimedia.py +36 -0
  28. manyqt-0.3.0/ManyQt/QtMultimediaWidgets.py +33 -0
  29. manyqt-0.3.0/ManyQt/QtNetwork.py +79 -0
  30. manyqt-0.3.0/ManyQt/QtNetworkAuth.py +38 -0
  31. manyqt-0.3.0/ManyQt/QtNfc.py +32 -0
  32. manyqt-0.3.0/ManyQt/QtOpenGL.py +33 -0
  33. manyqt-0.3.0/ManyQt/QtOpenGLWidgets.py +27 -0
  34. manyqt-0.3.0/ManyQt/QtPdf.py +29 -0
  35. manyqt-0.3.0/ManyQt/QtPdfWidgets.py +28 -0
  36. manyqt-0.3.0/ManyQt/QtPositioning.py +32 -0
  37. manyqt-0.3.0/ManyQt/QtPrintSupport.py +60 -0
  38. manyqt-0.3.0/ManyQt/QtPurchasing.py +32 -0
  39. manyqt-0.3.0/ManyQt/QtQml.py +27 -0
  40. manyqt-0.3.0/ManyQt/QtQuick.py +29 -0
  41. manyqt-0.3.0/ManyQt/QtQuick3D.py +32 -0
  42. manyqt-0.3.0/ManyQt/QtQuickControls2.py +23 -0
  43. manyqt-0.3.0/ManyQt/QtQuickWidgets.py +27 -0
  44. manyqt-0.3.0/ManyQt/QtRemoteObjects.py +32 -0
  45. manyqt-0.3.0/ManyQt/QtScxml.py +26 -0
  46. manyqt-0.3.0/ManyQt/QtSensors.py +32 -0
  47. manyqt-0.3.0/ManyQt/QtSerialBus.py +33 -0
  48. manyqt-0.3.0/ManyQt/QtSerialPort.py +32 -0
  49. manyqt-0.3.0/ManyQt/QtSpatialAudio.py +32 -0
  50. manyqt-0.3.0/ManyQt/QtSql.py +33 -0
  51. manyqt-0.3.0/ManyQt/QtStateMachine.py +26 -0
  52. manyqt-0.3.0/ManyQt/QtSvg.py +34 -0
  53. manyqt-0.3.0/ManyQt/QtSvgWidgets.py +33 -0
  54. manyqt-0.3.0/ManyQt/QtTest.py +283 -0
  55. manyqt-0.3.0/ManyQt/QtTextToSpeech.py +32 -0
  56. manyqt-0.3.0/ManyQt/QtUiTools.py +25 -0
  57. manyqt-0.3.0/ManyQt/QtVirtualKeyboard.py +40 -0
  58. manyqt-0.3.0/ManyQt/QtWebChannel.py +31 -0
  59. manyqt-0.3.0/ManyQt/QtWebEngineCore.py +55 -0
  60. manyqt-0.3.0/ManyQt/QtWebEngineQuick.py +29 -0
  61. manyqt-0.3.0/ManyQt/QtWebEngineWidgets.py +45 -0
  62. manyqt-0.3.0/ManyQt/QtWebKit.py +77 -0
  63. manyqt-0.3.0/ManyQt/QtWebKitWidgets.py +34 -0
  64. manyqt-0.3.0/ManyQt/QtWebSockets.py +32 -0
  65. manyqt-0.3.0/ManyQt/QtWebView.py +98 -0
  66. manyqt-0.3.0/ManyQt/QtWidgets.py +1019 -0
  67. manyqt-0.3.0/ManyQt/QtWinExtras.py +25 -0
  68. manyqt-0.3.0/ManyQt/QtX11Extras.py +35 -0
  69. manyqt-0.3.0/ManyQt/QtXml.py +33 -0
  70. manyqt-0.3.0/ManyQt/QtXmlPatterns.py +33 -0
  71. manyqt-0.3.0/ManyQt/__init__.py +89 -0
  72. manyqt-0.3.0/ManyQt/__main__.py +27 -0
  73. manyqt-0.3.0/ManyQt/_api.py +202 -0
  74. manyqt-0.3.0/ManyQt/_backport/QtCore.py +301 -0
  75. manyqt-0.3.0/ManyQt/_backport/QtDBus.py +22 -0
  76. manyqt-0.3.0/ManyQt/_backport/QtDesigner.py +5 -0
  77. manyqt-0.3.0/ManyQt/_backport/QtGui.py +1127 -0
  78. manyqt-0.3.0/ManyQt/_backport/QtHelp.py +17 -0
  79. manyqt-0.3.0/ManyQt/_backport/QtMultimedia.py +15 -0
  80. manyqt-0.3.0/ManyQt/_backport/QtNetwork.py +49 -0
  81. manyqt-0.3.0/ManyQt/_backport/QtOpenGL.py +7 -0
  82. manyqt-0.3.0/ManyQt/_backport/QtSql.py +21 -0
  83. manyqt-0.3.0/ManyQt/_backport/QtSvg.py +22 -0
  84. manyqt-0.3.0/ManyQt/_backport/QtTest.py +5 -0
  85. manyqt-0.3.0/ManyQt/_backport/QtWebKit.py +19 -0
  86. manyqt-0.3.0/ManyQt/_backport/QtXml.py +37 -0
  87. manyqt-0.3.0/ManyQt/_backport/QtXmlPatterns.py +22 -0
  88. manyqt-0.3.0/ManyQt/_backport/__init__.py +4 -0
  89. manyqt-0.3.0/ManyQt/_backport/_utils.py +31 -0
  90. manyqt-0.3.0/ManyQt/_backport/uic.py +5 -0
  91. manyqt-0.3.0/ManyQt/_compat.py +258 -0
  92. manyqt-0.3.0/ManyQt/_ctypes.py +110 -0
  93. manyqt-0.3.0/ManyQt/_fixes.py +784 -0
  94. manyqt-0.3.0/ManyQt/cli.py +176 -0
  95. manyqt-0.3.0/ManyQt/importhooks.py +162 -0
  96. manyqt-0.3.0/ManyQt/shiboken.py +131 -0
  97. manyqt-0.3.0/ManyQt/sip.py +131 -0
  98. manyqt-0.3.0/ManyQt/uic.py +75 -0
  99. manyqt-0.3.0/ManyQt.egg-info/PKG-INFO +103 -0
  100. manyqt-0.3.0/ManyQt.egg-info/SOURCES.txt +118 -0
  101. manyqt-0.3.0/ManyQt.egg-info/dependency_links.txt +1 -0
  102. manyqt-0.3.0/ManyQt.egg-info/top_level.txt +1 -0
  103. manyqt-0.3.0/PKG-INFO +103 -0
  104. manyqt-0.3.0/README.rst +105 -0
  105. manyqt-0.3.0/README.txt +69 -0
  106. manyqt-0.3.0/setup.cfg +20 -0
  107. manyqt-0.3.0/setup.py +30 -0
  108. manyqt-0.3.0/test/test_import.py +59 -0
  109. manyqt-0.3.0/tests/test_enums.py +26 -0
  110. manyqt-0.3.0/tests/test_exports.py +31 -0
  111. manyqt-0.3.0/tests/test_qabstractitemview.py +75 -0
  112. manyqt-0.3.0/tests/test_qaction_set_menu.py +60 -0
  113. manyqt-0.3.0/tests/test_qactionevent_action.py +94 -0
  114. manyqt-0.3.0/tests/test_qfontdatabase_static.py +53 -0
  115. manyqt-0.3.0/tests/test_qpainter_draw_pixmap_fragments.py +98 -0
  116. manyqt-0.3.0/tests/test_qpdfwriter_setpagesize.py +35 -0
  117. manyqt-0.3.0/tests/test_qsettings.py +56 -0
  118. manyqt-0.3.0/tests/test_qstandarditem_insertrow.py +41 -0
  119. manyqt-0.3.0/tests/test_qtest.py +77 -0
@@ -0,0 +1,3 @@
1
+ recursive-include ManyQt *.py
2
+ include *.txt
3
+ include *.py
@@ -0,0 +1,54 @@
1
+ # -*- coding: utf-8 -*-
2
+ """
3
+ Provides QtAxContainer classes and functions.
4
+ """
5
+ from os.path import dirname
6
+ from sys import path
7
+
8
+ if dirname(__file__) not in path:
9
+ path.append(dirname(__file__))
10
+
11
+ try:
12
+ from ._api import USED_API, QT_API_PYQT4, QT_API_PYQT6, QT_API_PYQT5, QT_API_PYSIDE2, QT_API_PYSIDE6, \
13
+ QtModuleNotInstalledError, apply_global_fixes
14
+ except:
15
+ from _api import USED_API, QT_API_PYQT4, QT_API_PYQT6, QT_API_PYQT5, QT_API_PYSIDE2, QT_API_PYSIDE6, \
16
+ QtModuleNotInstalledError, apply_global_fixes
17
+
18
+ if USED_API == QT_API_PYQT4:
19
+ try:
20
+ from PyQt4.QAxContainer import *
21
+ except:
22
+ from PyQt4.QtAxContainer import *
23
+ elif USED_API == QT_API_PYQT5:
24
+ try:
25
+ from PyQt5.QAxContainer import *
26
+ except:
27
+ from PyQt5.QtAxContainer import *
28
+ elif USED_API == QT_API_PYQT6:
29
+ try:
30
+ from PyQt6.QAxContainer import *
31
+ except:
32
+ from PyQt6.QtAxContainer import *
33
+ elif USED_API == QT_API_PYSIDE:
34
+ try:
35
+ from PySide.QtAxContainer import *
36
+ except:
37
+ from PySide.QAxContainer import *
38
+ elif USED_API == QT_API_PYSIDE2:
39
+ try:
40
+ from PySide2.QtAxContainer import *
41
+ except:
42
+ from PySide2.QAxContainer import *
43
+ elif USED_API == QT_API_PYSIDE6:
44
+ try:
45
+ try:
46
+ from PySide6.QtAxContainer import *
47
+ except:
48
+ from PySide6.QAxContainer import *
49
+ except:
50
+ raise QtModuleNotInstalledError(name="QAxContainer", missing_package="PySide6-Addons or PySide6-QtAds")
51
+ else:
52
+ raise ImportError("No module named 'QAxContainer' in the selected Qt api ({})".format(USED_API))
53
+
54
+ apply_global_fixes(globals())
@@ -0,0 +1,29 @@
1
+ # -*- coding: utf-8 -*-
2
+ """
3
+ Provides Qsci classes and functions.
4
+ """
5
+ from os.path import dirname
6
+ from sys import path
7
+
8
+ if dirname(__file__) not in path:
9
+ path.append(dirname(__file__))
10
+
11
+ try:
12
+ from ._api import USED_API, QT_API_PYQT6, QT_API_PYQT5, QtModuleNotInstalledError, apply_global_fixes
13
+ except:
14
+ from _api import USED_API, QT_API_PYQT6, QT_API_PYQT5, QtModuleNotInstalledError, apply_global_fixes
15
+
16
+ if USED_API == QT_API_PYQT5:
17
+ try:
18
+ from PyQt5.Qsci import *
19
+ except:
20
+ raise QtModuleNotInstalledError(name="Qsci", missing_package="QScintilla")
21
+ elif USED_API == QT_API_PYQT6:
22
+ try:
23
+ from PyQt6.Qsci import *
24
+ except:
25
+ raise QtModuleNotInstalledError(name="Qsci", missing_package="PyQt6-QScintilla")
26
+ else:
27
+ raise ImportError("No module named 'Qsci' in the selected Qt api ({})".format(USED_API))
28
+
29
+ apply_global_fixes(globals())
@@ -0,0 +1,48 @@
1
+ # -*- coding: utf-8 -*-
2
+ """
3
+ Provides Qt3DAnimation classes and functions.
4
+ """
5
+ from os.path import dirname
6
+ from sys import path
7
+
8
+ if dirname(__file__) not in path:
9
+ path.append(dirname(__file__))
10
+
11
+ try:
12
+ from ._api import USED_API, QT_API_PYQT6, QT_API_PYQT5, QT_API_PYSIDE2, QT_API_PYSIDE6, QtModuleNotInstalledError, \
13
+ apply_global_fixes
14
+ except:
15
+ from _api import USED_API, QT_API_PYQT6, QT_API_PYQT5, QT_API_PYSIDE2, QT_API_PYSIDE6, QtModuleNotInstalledError, \
16
+ apply_global_fixes
17
+
18
+ if USED_API == QT_API_PYQT5:
19
+ try:
20
+ from PyQt5.Qt3DAnimation import *
21
+ except:
22
+ raise QtModuleNotInstalledError(name="Qt3DAnimation", missing_package="PyQt3D")
23
+ elif USED_API == QT_API_PYQT6:
24
+ try:
25
+ from PyQt6.Qt3DAnimation import *
26
+ except:
27
+ raise QtModuleNotInstalledError(name="Qt3DAnimation", missing_package="PyQt6-3D")
28
+ elif USED_API == QT_API_PYSIDE2:
29
+ # https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-1026
30
+ from inspect import getmembers
31
+ import PySide2.Qt3DAnimation as __temp
32
+
33
+ for __name in getmembers(__temp.Qt3DAnimation):
34
+ globals()[__name[0]] = __name[1]
35
+ elif USED_API == QT_API_PYSIDE6:
36
+ try:
37
+ # https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-1026
38
+ from inspect import getmembers
39
+ import PySide6.Qt3DAnimation as __temp
40
+
41
+ for __name in getmembers(__temp.Qt3DAnimation):
42
+ globals()[__name[0]] = __name[1]
43
+ except:
44
+ raise QtModuleNotInstalledError(name="Qt3DAnimation", missing_package="PySide6-Addons or PySide6-QtAds")
45
+ else:
46
+ raise ImportError("No module named 'Qt3DAnimation' in the selected Qt api ({})".format(USED_API))
47
+
48
+ apply_global_fixes(globals())
@@ -0,0 +1,48 @@
1
+ # -*- coding: utf-8 -*-
2
+ """
3
+ Provides Qt3DCore classes and functions.
4
+ """
5
+ from os.path import dirname
6
+ from sys import path
7
+
8
+ if dirname(__file__) not in path:
9
+ path.append(dirname(__file__))
10
+
11
+ try:
12
+ from ._api import USED_API, QT_API_PYQT6, QT_API_PYQT5, QT_API_PYSIDE2, QT_API_PYSIDE6, QtModuleNotInstalledError, \
13
+ apply_global_fixes
14
+ except:
15
+ from _api import USED_API, QT_API_PYQT6, QT_API_PYQT5, QT_API_PYSIDE2, QT_API_PYSIDE6, QtModuleNotInstalledError, \
16
+ apply_global_fixes
17
+
18
+ if USED_API == QT_API_PYQT5:
19
+ try:
20
+ from PyQt5.Qt3DCore import *
21
+ except:
22
+ raise QtModuleNotInstalledError(name="Qt3DCore", missing_package="PyQt3D")
23
+ elif USED_API == QT_API_PYQT6:
24
+ try:
25
+ from PyQt6.Qt3DCore import *
26
+ except:
27
+ raise QtModuleNotInstalledError(name="Qt3DCore", missing_package="PyQt6-3D")
28
+ elif USED_API == QT_API_PYSIDE2:
29
+ # https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-1026
30
+ import PySide2.Qt3DCore as __temp
31
+ from inspect import getmembers
32
+
33
+ for __name in getmembers(__temp.Qt3DCore):
34
+ globals()[__name[0]] = __name[1]
35
+ elif USED_API == QT_API_PYSIDE6:
36
+ try:
37
+ # https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-1026
38
+ import PySide6.Qt3DCore as __temp
39
+ from inspect import getmembers
40
+
41
+ for __name in getmembers(__temp.Qt3DCore):
42
+ globals()[__name[0]] = __name[1]
43
+ except:
44
+ raise QtModuleNotInstalledError(name="Qt3DCore", missing_package="PySide6-Addons or PySide6-QtAds")
45
+ else:
46
+ raise ImportError("No module named 'Qt3DCore' in the selected Qt api ({})".format(USED_API))
47
+
48
+ apply_global_fixes(globals())
@@ -0,0 +1,48 @@
1
+ # -*- coding: utf-8 -*-
2
+ """
3
+ Provides Qt3DExtras classes and functions.
4
+ """
5
+ from os.path import dirname
6
+ from sys import path
7
+
8
+ if dirname(__file__) not in path:
9
+ path.append(dirname(__file__))
10
+
11
+ try:
12
+ from ._api import USED_API, QT_API_PYQT6, QT_API_PYQT5, QT_API_PYSIDE2, QT_API_PYSIDE6, QtModuleNotInstalledError, \
13
+ apply_global_fixes
14
+ except:
15
+ from _api import USED_API, QT_API_PYQT6, QT_API_PYQT5, QT_API_PYSIDE2, QT_API_PYSIDE6, QtModuleNotInstalledError, \
16
+ apply_global_fixes
17
+
18
+ if USED_API == QT_API_PYQT5:
19
+ try:
20
+ from PyQt5.Qt3DExtras import *
21
+ except:
22
+ raise QtModuleNotInstalledError(name="Qt3DExtras", missing_package="PyQt3D")
23
+ elif USED_API == QT_API_PYQT6:
24
+ try:
25
+ from PyQt6.Qt3DExtras import *
26
+ except:
27
+ raise QtModuleNotInstalledError(name="Qt3DExtras", missing_package="PyQt6-3D")
28
+ elif USED_API == QT_API_PYSIDE2:
29
+ # https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-1026
30
+ from inspect import getmembers
31
+ import PySide2.Qt3DExtras as __temp
32
+
33
+ for __name in getmembers(__temp.Qt3DExtras):
34
+ globals()[__name[0]] = __name[1]
35
+ elif USED_API == QT_API_PYSIDE6:
36
+ try:
37
+ # https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-1026
38
+ from inspect import getmembers
39
+ import PySide6.Qt3DExtras as __temp
40
+
41
+ for __name in getmembers(__temp.Qt3DExtras):
42
+ globals()[__name[0]] = __name[1]
43
+ except:
44
+ raise QtModuleNotInstalledError(name="Qt3DExtras", missing_package="PySide6-Addons or PySide6-QtAds")
45
+ else:
46
+ raise ImportError("No module named 'Qt3DExtras' in the selected Qt api ({})".format(USED_API))
47
+
48
+ apply_global_fixes(globals())
@@ -0,0 +1,48 @@
1
+ # -*- coding: utf-8 -*-
2
+ """
3
+ Provides Qt3DInput classes and functions.
4
+ """
5
+ from os.path import dirname
6
+ from sys import path
7
+
8
+ if dirname(__file__) not in path:
9
+ path.append(dirname(__file__))
10
+
11
+ try:
12
+ from ._api import USED_API, QT_API_PYQT6, QT_API_PYQT5, QT_API_PYSIDE2, QT_API_PYSIDE6, QtModuleNotInstalledError, \
13
+ apply_global_fixes
14
+ except:
15
+ from _api import USED_API, QT_API_PYQT6, QT_API_PYQT5, QT_API_PYSIDE2, QT_API_PYSIDE6, QtModuleNotInstalledError, \
16
+ apply_global_fixes
17
+
18
+ if USED_API == QT_API_PYQT5:
19
+ try:
20
+ from PyQt5.Qt3DInput import *
21
+ except:
22
+ raise QtModuleNotInstalledError(name="Qt3DInput", missing_package="PyQt3D")
23
+ elif USED_API == QT_API_PYQT6:
24
+ try:
25
+ from PyQt6.Qt3DInput import *
26
+ except:
27
+ raise QtModuleNotInstalledError(name="Qt3DInput", missing_package="PyQt6-3D")
28
+ elif USED_API == QT_API_PYSIDE2:
29
+ # https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-1026
30
+ import PySide2.Qt3DInput as __temp
31
+ from inspect import getmembers
32
+
33
+ for __name in getmembers(__temp.Qt3DInput):
34
+ globals()[__name[0]] = __name[1]
35
+ elif USED_API == QT_API_PYSIDE6:
36
+ try:
37
+ # https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-1026
38
+ import PySide6.Qt3DInput as __temp
39
+ from inspect import getmembers
40
+
41
+ for __name in getmembers(__temp.Qt3DInput):
42
+ globals()[__name[0]] = __name[1]
43
+ except:
44
+ raise QtModuleNotInstalledError(name="Qt3DInput", missing_package="PySide6-Addons or PySide6-QtAds")
45
+ else:
46
+ raise ImportError("No module named 'Qt3DInput' in the selected Qt api ({})".format(USED_API))
47
+
48
+ apply_global_fixes(globals())
@@ -0,0 +1,48 @@
1
+ # -*- coding: utf-8 -*-
2
+ """
3
+ Provides Qt3DLogic classes and functions.
4
+ """
5
+ from os.path import dirname
6
+ from sys import path
7
+
8
+ if dirname(__file__) not in path:
9
+ path.append(dirname(__file__))
10
+
11
+ try:
12
+ from ._api import USED_API, QT_API_PYQT6, QT_API_PYQT5, QT_API_PYSIDE2, QT_API_PYSIDE6, QtModuleNotInstalledError, \
13
+ apply_global_fixes
14
+ except:
15
+ from _api import USED_API, QT_API_PYQT6, QT_API_PYQT5, QT_API_PYSIDE2, QT_API_PYSIDE6, QtModuleNotInstalledError, \
16
+ apply_global_fixes
17
+
18
+ if USED_API == QT_API_PYQT5:
19
+ try:
20
+ from PyQt5.Qt3DLogic import *
21
+ except:
22
+ raise QtModuleNotInstalledError(name="Qt3DLogic", missing_package="PyQt3D")
23
+ elif USED_API == QT_API_PYQT6:
24
+ try:
25
+ from PyQt6.Qt3DLogic import *
26
+ except:
27
+ raise QtModuleNotInstalledError(name="Qt3DLogic", missing_package="PyQt6-3D")
28
+ elif USED_API == QT_API_PYSIDE2:
29
+ # https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-1026
30
+ import PySide2.Qt3DLogic as __temp
31
+ from inspect import getmembers
32
+
33
+ for __name in getmembers(__temp.Qt3DLogic):
34
+ globals()[__name[0]] = __name[1]
35
+ elif USED_API == QT_API_PYSIDE6:
36
+ try:
37
+ # https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-1026
38
+ import PySide6.Qt3DLogic as __temp
39
+ from inspect import getmembers
40
+
41
+ for __name in getmembers(__temp.Qt3DLogic):
42
+ globals()[__name[0]] = __name[1]
43
+ except:
44
+ raise QtModuleNotInstalledError(name="Qt3DLogic", missing_package="PySide6-Addons or PySide6-QtAds")
45
+ else:
46
+ raise ImportError("No module named 'Qt3DLogic' in the selected Qt api ({})".format(USED_API))
47
+
48
+ apply_global_fixes(globals())
@@ -0,0 +1,48 @@
1
+ # -*- coding: utf-8 -*-
2
+ """
3
+ Provides Qt3DRender classes and functions.
4
+ """
5
+ from os.path import dirname
6
+ from sys import path
7
+
8
+ if dirname(__file__) not in path:
9
+ path.append(dirname(__file__))
10
+
11
+ try:
12
+ from ._api import USED_API, QT_API_PYQT6, QT_API_PYQT5, QT_API_PYSIDE2, QT_API_PYSIDE6, QtModuleNotInstalledError, \
13
+ apply_global_fixes
14
+ except:
15
+ from _api import USED_API, QT_API_PYQT6, QT_API_PYQT5, QT_API_PYSIDE2, QT_API_PYSIDE6, QtModuleNotInstalledError, \
16
+ apply_global_fixes
17
+
18
+ if USED_API == QT_API_PYQT5:
19
+ try:
20
+ from PyQt5.Qt3DRender import *
21
+ except:
22
+ raise QtModuleNotInstalledError(name="Qt3DRender", missing_package="PyQt3D")
23
+ elif USED_API == QT_API_PYQT6:
24
+ try:
25
+ from PyQt6.Qt3DRender import *
26
+ except:
27
+ raise QtModuleNotInstalledError(name="Qt3DRender", missing_package="PyQt6-3D")
28
+ elif USED_API == QT_API_PYSIDE2:
29
+ # https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-1026
30
+ import PySide2.Qt3DRender as __temp
31
+ from inspect import getmembers
32
+
33
+ for __name in getmembers(__temp.Qt3DRender):
34
+ globals()[__name[0]] = __name[1]
35
+ elif USED_API == QT_API_PYSIDE6:
36
+ try:
37
+ # https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-1026
38
+ import PySide6.Qt3DRender as __temp
39
+ from inspect import getmembers
40
+
41
+ for __name in getmembers(__temp.Qt3DRender):
42
+ globals()[__name[0]] = __name[1]
43
+ except:
44
+ raise QtModuleNotInstalledError(name="Qt3DRender", missing_package="PySide6-Addons or PySide6-QtAds")
45
+ else:
46
+ raise ImportError("No module named 'Qt3DRender' in the selected Qt api ({})".format(USED_API))
47
+
48
+ apply_global_fixes(globals())
@@ -0,0 +1,43 @@
1
+ # -*- coding: utf-8 -*-
2
+ """
3
+ QtAsyncio is a Python package that provides asyncio support for Qt applications.
4
+ It allows you to use async/await syntax with Qt's event loop and signals/slots mechanism.
5
+ """
6
+ from os.path import dirname
7
+ from sys import path
8
+
9
+ if dirname(__file__) not in path:
10
+ path.append(dirname(__file__))
11
+
12
+ try:
13
+ from ._api import USED_API, QT_API_PYQT6, QT_API_PYQT5, QT_API_PYSIDE2, QT_API_PYSIDE6, QtModuleNotInstalledError, \
14
+ apply_global_fixes
15
+ except:
16
+ from _api import USED_API, QT_API_PYQT6, QT_API_PYQT5, QT_API_PYSIDE2, QT_API_PYSIDE6, QtModuleNotInstalledError, \
17
+ apply_global_fixes
18
+
19
+ if USED_API == QT_API_PYQT5:
20
+ try:
21
+ from PyQt5.QtAsyncio import *
22
+ except:
23
+ raise QtModuleNotInstalledError(name="QtAsyncio", missing_package="qasync or qt-async-threads")
24
+ elif USED_API == QT_API_PYQT6:
25
+ try:
26
+ from PyQt6.QtAsyncio import *
27
+ except:
28
+ raise QtModuleNotInstalledError(name="QtAsyncio", missing_package="qasync or qt-async-threads")
29
+ elif USED_API == QT_API_PYSIDE2:
30
+ try:
31
+ from PySide2.QtAsyncio import *
32
+ except:
33
+ raise QtModuleNotInstalledError(name="QtAsyncio", missing_package="qasync or qt-async-threads")
34
+ elif USED_API == QT_API_PYSIDE6:
35
+ try:
36
+ from PySide6.QtAsyncio import *
37
+ except:
38
+ raise QtModuleNotInstalledError(
39
+ name="QtAsyncio", missing_package="PySide6-Addons or PySide6-QtAds or qt-async-threads")
40
+ else:
41
+ raise ImportError("No module named 'QtAsyncio' in the selected Qt api ({})".format(USED_API))
42
+
43
+ apply_global_fixes(globals())
@@ -0,0 +1,54 @@
1
+ # -*- coding: utf-8 -*-
2
+ """
3
+ Provides QtAxContainer classes and functions.
4
+ """
5
+ from os.path import dirname
6
+ from sys import path
7
+
8
+ if dirname(__file__) not in path:
9
+ path.append(dirname(__file__))
10
+
11
+ try:
12
+ from ._api import USED_API, QT_API_PYQT4, QT_API_PYQT6, QT_API_PYQT5, QT_API_PYSIDE, QT_API_PYSIDE2, \
13
+ QT_API_PYSIDE6, QtModuleNotInstalledError, apply_global_fixes
14
+ except:
15
+ from _api import USED_API, QT_API_PYQT4, QT_API_PYQT6, QT_API_PYQT5, QT_API_PYSIDE, QT_API_PYSIDE2, \
16
+ QT_API_PYSIDE6, QtModuleNotInstalledError, apply_global_fixes
17
+
18
+ if USED_API == QT_API_PYQT4:
19
+ try:
20
+ from PyQt4.QAxContainer import *
21
+ except:
22
+ from PyQt4.QtAxContainer import *
23
+ elif USED_API == QT_API_PYQT5:
24
+ try:
25
+ from PyQt5.QAxContainer import *
26
+ except:
27
+ from PyQt5.QtAxContainer import *
28
+ elif USED_API == QT_API_PYQT6:
29
+ try:
30
+ from PyQt6.QAxContainer import *
31
+ except:
32
+ from PyQt6.QtAxContainer import *
33
+ elif USED_API == QT_API_PYSIDE:
34
+ try:
35
+ from PySide.QtAxContainer import *
36
+ except:
37
+ from PySide.QAxContainer import *
38
+ elif USED_API == QT_API_PYSIDE2:
39
+ try:
40
+ from PySide2.QtAxContainer import *
41
+ except:
42
+ from PySide2.QAxContainer import *
43
+ elif USED_API == QT_API_PYSIDE6:
44
+ try:
45
+ try:
46
+ from PySide6.QtAxContainer import *
47
+ except:
48
+ from PySide6.QAxContainer import *
49
+ except:
50
+ raise QtModuleNotInstalledError(name="QtAxContainer", missing_package="PySide6-Addons or PySide6-QtAds")
51
+ else:
52
+ raise ImportError("No module named 'QtAxContainer' in the selected Qt api ({})".format(USED_API))
53
+
54
+ apply_global_fixes(globals())
@@ -0,0 +1,32 @@
1
+ # -*- coding: utf-8 -*-
2
+ """
3
+ Provides QtBluetooth classes and functions.
4
+ """
5
+ from os.path import dirname
6
+ from sys import path
7
+
8
+ if dirname(__file__) not in path:
9
+ path.append(dirname(__file__))
10
+
11
+ try:
12
+ from ._api import USED_API, QT_API_PYQT6, QT_API_PYQT5, QT_API_PYSIDE2, QT_API_PYSIDE6, QtModuleNotInstalledError, \
13
+ apply_global_fixes
14
+ except:
15
+ from _api import USED_API, QT_API_PYQT6, QT_API_PYQT5, QT_API_PYSIDE2, QT_API_PYSIDE6, QtModuleNotInstalledError, \
16
+ apply_global_fixes
17
+
18
+ if USED_API == QT_API_PYQT5:
19
+ from PyQt5.QtBluetooth import *
20
+ elif USED_API == QT_API_PYQT6:
21
+ from PyQt6.QtBluetooth import *
22
+ elif USED_API == QT_API_PYSIDE2:
23
+ from PySide2.QtBluetooth import *
24
+ elif USED_API == QT_API_PYSIDE6:
25
+ try:
26
+ from PySide6.QtBluetooth import *
27
+ except:
28
+ raise QtModuleNotInstalledError(name="QtBluetooth", missing_package="PySide6-Addons or PySide6-QtAds")
29
+ else:
30
+ raise ImportError("No module named 'QtBluetooth' in the selected Qt api ({})".format(USED_API))
31
+
32
+ apply_global_fixes(globals())
@@ -0,0 +1,46 @@
1
+ # -*- coding: utf-8 -*-
2
+ """
3
+ Provides QtChart classes and functions.
4
+ """
5
+ from os.path import dirname
6
+ from sys import path
7
+
8
+ if dirname(__file__) not in path:
9
+ path.append(dirname(__file__))
10
+
11
+ try:
12
+ from ._api import USED_API, QT_API_PYQT6, QT_API_PYQT5, QT_API_PYSIDE2, QT_API_PYSIDE6, QtModuleNotInstalledError, \
13
+ apply_global_fixes
14
+ except:
15
+ from _api import USED_API, QT_API_PYQT6, QT_API_PYQT5, QT_API_PYSIDE2, QT_API_PYSIDE6, QtModuleNotInstalledError, \
16
+ apply_global_fixes
17
+
18
+ if USED_API == QT_API_PYQT5:
19
+ try:
20
+ from PyQt5.QtChart import *
21
+ except:
22
+ raise QtModuleNotInstalledError(name="QtChart", missing_package="PyQtChart")
23
+ elif USED_API == QT_API_PYQT6:
24
+ try:
25
+ from PyQt6 import QtCharts as QtChart
26
+ from PyQt6.QtCharts import *
27
+ except:
28
+ raise QtModuleNotInstalledError(name="QtChart", missing_package="PyQt6-Charts")
29
+ elif USED_API == QT_API_PYSIDE2:
30
+ # https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-1026
31
+ import PySide2.QtCharts as __temp
32
+ from PySide2.QtCharts import *
33
+ from inspect import getmembers
34
+
35
+ for __name in getmembers(__temp.QtCharts):
36
+ globals()[__name[0]] = __name[1]
37
+ elif USED_API == QT_API_PYSIDE6:
38
+ try:
39
+ from PySide6 import QtCharts as QtChart
40
+ from PySide6.QtCharts import *
41
+ except:
42
+ raise QtModuleNotInstalledError(name="QtCharts", missing_package="PySide6-Addons or PySide6-QtAds")
43
+ else:
44
+ raise ImportError("No module named 'QtChart' in the selected Qt api ({})".format(USED_API))
45
+
46
+ apply_global_fixes(globals())
@@ -0,0 +1,47 @@
1
+ # -*- coding: utf-8 -*-
2
+ """
3
+ Provides QtChart classes and functions.
4
+ """
5
+ from os.path import dirname
6
+ from sys import path
7
+
8
+ if dirname(__file__) not in path:
9
+ path.append(dirname(__file__))
10
+
11
+ try:
12
+ from ._api import USED_API, QT_API_PYQT6, QT_API_PYQT5, QT_API_PYSIDE2, QT_API_PYSIDE6, QtModuleNotInstalledError, \
13
+ apply_global_fixes
14
+ except:
15
+ from _api import USED_API, QT_API_PYQT6, QT_API_PYQT5, QT_API_PYSIDE2, QT_API_PYSIDE6, QtModuleNotInstalledError, \
16
+ apply_global_fixes
17
+
18
+ if USED_API == QT_API_PYQT5:
19
+ try:
20
+ from PyQt5 import QtChart as QtCharts
21
+ from PyQt5.QtChart import *
22
+ except:
23
+ raise QtModuleNotInstalledError(name="QtCharts", missing_package="PyQtChart")
24
+ elif USED_API == QT_API_PYQT6:
25
+ try:
26
+ from PyQt6 import QtCharts
27
+ from PyQt6.QtCharts import *
28
+ except:
29
+ raise QtModuleNotInstalledError(name="QtCharts", missing_package="PyQt6-Charts")
30
+ elif USED_API == QT_API_PYSIDE2:
31
+ # https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-1026
32
+ import PySide2.QtCharts as __temp
33
+ from PySide2.QtCharts import *
34
+ from inspect import getmembers
35
+
36
+ for __name in getmembers(__temp.QtCharts):
37
+ globals()[__name[0]] = __name[1]
38
+ elif USED_API == QT_API_PYSIDE6:
39
+ try:
40
+ from PySide6 import QtCharts
41
+ from PySide6.QtCharts import *
42
+ except:
43
+ raise QtModuleNotInstalledError(name="QtCharts", missing_package="PySide6-Addons or PySide6-QtAds")
44
+ else:
45
+ raise ImportError("No module named 'QtCharts' in the selected Qt api ({})".format(USED_API))
46
+
47
+ apply_global_fixes(globals())