From 32cbdcfd1cefcb6cb23f4e846bf70a607d0788be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=2E=20Armando=20Sol=C3=A9?= Date: Wed, 29 Nov 2023 17:18:53 +0100 Subject: [PATCH] Remove warning --- PyMca5/PyMcaGui/pymca/PyMcaMain.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/PyMca5/PyMcaGui/pymca/PyMcaMain.py b/PyMca5/PyMcaGui/pymca/PyMcaMain.py index 12e385bec..71549d40c 100644 --- a/PyMca5/PyMcaGui/pymca/PyMcaMain.py +++ b/PyMca5/PyMcaGui/pymca/PyMcaMain.py @@ -127,11 +127,7 @@ from PyMca5.PyMcaGui import PyMcaQt as qt from PyMca5.PyMcaGui.io import PyMcaFileDialogs QTVERSION = qt.qVersion() -if sys.platform == 'darwin': - if backend is not None: - if backend.lower() in ["gl", "opengl"]: - if hasattr(qt, 'QOpenGLWidget'): - print("Warning: OpenGL backend not fully supported") + try: import silx # try to import silx prior to importing matplotlib to prevent