Skip to content

Qt5 support#528

Merged
prabhuramachandran merged 6 commits into
enthought:masterfrom
prabhuramachandran:qt5-support
Jul 19, 2017
Merged

Qt5 support#528
prabhuramachandran merged 6 commits into
enthought:masterfrom
prabhuramachandran:qt5-support

Conversation

@prabhuramachandran
Copy link
Copy Markdown
Member

  • Basic support for Qt5. This makes Mayavi compatible with PyQt5.
  • This requires the latest traits, traitsui, and pyface from master. A new release may be forthcoming for these packages soon.
  • This works well with VTK-8.x which is typically not available on most Python packages but is easy to do by hand. On older versions, on MacOS, the embedded VTK window is half the size.
  • There are some warnings about "Attempt to set a screen on a child window." which seem related to the toolbar used on the decorated scene. This seems like a pyface issue with the toolbar.
  • Mlab and traits based dialogs work fine.
  • Mayavi2 works but reparenting windows seems to not work very well suggesting that there are more migration issues in the other libraries.
  • This PR also sneaks in a couple of Python3 migration bugs in Mayavi.

@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #528 into master will decrease coverage by 0.01%.
The diff coverage is 31.25%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #528      +/-   ##
==========================================
- Coverage    50.4%   50.38%   -0.02%     
==========================================
  Files         255      255              
  Lines       22549    22580      +31     
  Branches     3005     3015      +10     
==========================================
+ Hits        11365    11377      +12     
- Misses      10454    10469      +15     
- Partials      730      734       +4
Impacted Files Coverage Δ
tvtk/code_gen.py 0% <0%> (ø) ⬆️
tvtk/util/gradient_editor.py 15.11% <0%> (+0.26%) ⬆️
tvtk/pyface/ui/qt4/scene.py 37.1% <20%> (-0.06%) ⬇️
tvtk/pyface/ui/qt4/init.py 33.33% <28.57%> (-5.13%) ⬇️
tvtk/pyface/ui/qt4/QVTKRenderWindowInteractor.py 37.27% <34.69%> (-1.25%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d2a5158...784f24c. Read the comment docs.

@raphmur
Copy link
Copy Markdown

raphmur commented Feb 26, 2018

bump

Great work

Can we get a release soon to try and integrate this new version in conda-forge?

@prabhuramachandran
Copy link
Copy Markdown
Member Author

Perhaps next week, I am waiting for a traitsui and pyface release. Not sure about conda-forge but I will push it to pypi and then mayavi will be completely pip installable with the VTK wheels I just pushed a few weeks ago.

@raphmur
Copy link
Copy Markdown

raphmur commented Feb 26, 2018

brilliant
looking forward to it

@adam-grant-hendry
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants