drap 0.0.3.post6__py3-none-any.whl → 0.0.3.post7__py3-none-any.whl
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.
- drap/qt_adjust.py +5 -16
- {drap-0.0.3.post6.dist-info → drap-0.0.3.post7.dist-info}/METADATA +1 -1
- {drap-0.0.3.post6.dist-info → drap-0.0.3.post7.dist-info}/RECORD +7 -7
- {drap-0.0.3.post6.dist-info → drap-0.0.3.post7.dist-info}/WHEEL +0 -0
- {drap-0.0.3.post6.dist-info → drap-0.0.3.post7.dist-info}/entry_points.txt +0 -0
- {drap-0.0.3.post6.dist-info → drap-0.0.3.post7.dist-info}/licenses/LICENSE +0 -0
- {drap-0.0.3.post6.dist-info → drap-0.0.3.post7.dist-info}/top_level.txt +0 -0
drap/qt_adjust.py
CHANGED
@@ -3,39 +3,28 @@ import os
|
|
3
3
|
from PyQt5.QtCore import QLibraryInfo, QCoreApplication
|
4
4
|
|
5
5
|
def fix_qt_plugin_paths(prefer_platform: str | None = None) -> None:
|
6
|
-
|
7
|
-
Força o Qt a usar os plugins do PyQt5 e remove caminhos herdados do cv2.
|
8
|
-
Chame isso ANTES de criar o QApplication.
|
9
|
-
"""
|
10
|
-
# 1) Limpa variáveis que podem apontar para plugins errados
|
6
|
+
|
11
7
|
os.environ.pop("QT_QPA_PLATFORM_PLUGIN_PATH", None)
|
12
8
|
os.environ.pop("QT_PLUGIN_PATH", None)
|
13
9
|
|
14
|
-
# 2) Define plataforma padrão (ajude o usuário)
|
15
10
|
if prefer_platform:
|
16
11
|
os.environ["QT_QPA_PLATFORM"] = prefer_platform
|
17
12
|
else:
|
18
13
|
os.environ.setdefault("QT_QPA_PLATFORM", "xcb") # ou 'wayland' conforme seu público
|
19
14
|
|
20
|
-
|
15
|
+
|
21
16
|
for p in list(QCoreApplication.libraryPaths()):
|
22
17
|
if "cv2/qt/plugins" in p:
|
23
18
|
QCoreApplication.removeLibraryPath(p)
|
24
19
|
|
25
|
-
|
20
|
+
|
26
21
|
pyqt_plugins = QLibraryInfo.location(QLibraryInfo.PluginsPath)
|
27
22
|
QCoreApplication.addLibraryPath(pyqt_plugins)
|
28
23
|
|
29
24
|
def assert_not_using_cv2_plugins() -> None:
|
30
|
-
|
31
|
-
Se ainda houver um caminho de plugins do cv2, emite uma dica amigável.
|
32
|
-
"""
|
25
|
+
|
33
26
|
for p in QCoreApplication.libraryPaths():
|
34
27
|
if "cv2/qt/plugins" in p:
|
35
28
|
raise RuntimeError(
|
36
|
-
"
|
37
|
-
"Instale apenas 'opencv-python-headless' e remova resíduos:\n"
|
38
|
-
" pip uninstall -y opencv-python opencv-contrib-python\n"
|
39
|
-
" # apague a pasta 'cv2' do seu site-packages deste venv\n"
|
40
|
-
" pip install --no-cache-dir opencv-python-headless PyQt5\n"
|
29
|
+
"Error"
|
41
30
|
)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: drap
|
3
|
-
Version: 0.0.3.
|
3
|
+
Version: 0.0.3.post7
|
4
4
|
Summary: Tool for analyzing droplet size and concentration using video and EDF images
|
5
5
|
Author-email: "Gabriel Braga Marques Teobaldo, Oleg Prymak, Natalie Wolff, Matthias Epple, Marco Aurélio Brizzotti Andrade, Cássio Alves and Cristiano Luis Pinto de Oliveira" <alves.casssio@gmail.com>
|
6
6
|
License: MIT
|
@@ -2,12 +2,12 @@ drap/__init__.py,sha256=RF05F-NDoYmyOjQ1EgdKSfsx2tTYCheTpL0AYrFmdI0,47
|
|
2
2
|
drap/automation.py,sha256=TvCwFeYgrKxc50kaQkV2ETGyD1RhxCCX5oCGMWo2JjU,1294
|
3
3
|
drap/gui.py,sha256=LzBBQwFiF6IcOZfBkWB6wnKsBKD-v-6Un8VoJMG7eKU,1553
|
4
4
|
drap/main.py,sha256=IBMQp932Qd6aBSeWCoQH2MQhMtmEU_yZKOsUO_U9Wmk,1201
|
5
|
-
drap/qt_adjust.py,sha256=
|
5
|
+
drap/qt_adjust.py,sha256=K4lqMC7aZ8RlcA65BIVtftRoZWY9OVrAQQP-IHN2f_E,875
|
6
6
|
drap/terminal_interface.py,sha256=vCnobMdtxKvCUaFsu0fWmChd65a-Osn41LdMtSdMdO4,2201
|
7
7
|
drap/utils.py,sha256=5IIjrGB4MBR2FX6Gdh7rCYJOZpGSFn8eTj0g3yPaHxU,66804
|
8
|
-
drap-0.0.3.
|
9
|
-
drap-0.0.3.
|
10
|
-
drap-0.0.3.
|
11
|
-
drap-0.0.3.
|
12
|
-
drap-0.0.3.
|
13
|
-
drap-0.0.3.
|
8
|
+
drap-0.0.3.post7.dist-info/licenses/LICENSE,sha256=iHcEhVN-5ifqXsDa1Ny38sIBS7SJ9-eYJQRtHiJ3QU0,1098
|
9
|
+
drap-0.0.3.post7.dist-info/METADATA,sha256=1RABw2n4uyrNMlQr-GkTaxlHzQHPCYqGquu5F1BQdTg,1367
|
10
|
+
drap-0.0.3.post7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
11
|
+
drap-0.0.3.post7.dist-info/entry_points.txt,sha256=8AnGrT_RVCkh26SYRqjRTbstT4BMuOO68qRFqPfPr8M,69
|
12
|
+
drap-0.0.3.post7.dist-info/top_level.txt,sha256=jYMnBoijRdvPMYoMlILxlRNbSdKUX3_uwMa7DLRE4zE,5
|
13
|
+
drap-0.0.3.post7.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|