Skip to content
Snippets Groups Projects
Commit 00ab9dc1 authored by Papeleux Luc's avatar Papeleux Luc
Browse files

porting to PySide2

parent f743593a
No related branches found
No related tags found
1 merge request!62porting to PySide2
Pipeline #2194 passed
......@@ -24,10 +24,23 @@ import tbox as tb
# TODO: creer un objet dataset qui gere l'ugrid (comme dans Metafor)
# Qt
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
print("PyQt5 (Qt %s) loaded!" % QT_VERSION_STR)
try:
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
print("PyQt5 (Qt %s) loaded!" % QT_VERSION_STR)
except :
try:
import PySide2
from PySide2.QtCore import *
from PySide2.QtGui import *
from PySide2.QtWidgets import *
#print("PySide2 loaded!")
print("PySide2 (Qt %s) loaded!" % PySide2.__version__)
except :
print("Unable to load PyQt nor PySide2")
sys.exit()
# vtk
import vtk
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment