Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
waves
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Pour rappel, le service sera inaccessible ce lundi 05/05/25 midi pour raison de mise à jour.
Show more breadcrumbs
Aerospace and Mechanical Engineering
waves
Commits
00ab9dc1
Commit
00ab9dc1
authored
4 years ago
by
Papeleux Luc
Browse files
Options
Downloads
Patches
Plain Diff
porting to PySide2
parent
f743593a
No related branches found
No related tags found
1 merge request
!62
porting to PySide2
Pipeline
#2194
passed
4 years ago
Changes
1
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
waves/viewer.py
+17
-4
17 additions, 4 deletions
waves/viewer.py
with
17 additions
and
4 deletions
waves/viewer.py
+
17
−
4
View file @
00ab9dc1
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment