Fri 29 Nov 2024 04:30:50 PM CET

This commit is contained in:
sbosse 2024-11-29 16:32:19 +01:00
parent 57a8634a67
commit 3df34e3ff0

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))