Wed 28 Aug 21:38:52 CEST 2024

This commit is contained in:
sbosse 2024-08-28 21:39:54 +02:00
parent 8dbf1e2086
commit 8f255b0b9b

View File

@ -0,0 +1,18 @@
__author__ = 'Miguel Molero'
from PySide.QtGui import *
global ErrorImportCL
try:
import pyopencl as cl
ErrorImportCL = False
except ImportError:
ErrorImportCL = True
def isOpenCL(openclIcon, openclLabel):
global ErrorImportCL
if not ErrorImportCL:
openclIcon.setToolTip(("OpenCL actived"))
openclLabel.setPixmap(QPixmap(":/circle_green.png").scaled(10, 10))