How to get MayaVi2 to default to/use Qt rather than wx?

后端 未结 1 333
面向向阳花
面向向阳花 2020-12-30 15:11

Previously I have been using a python environment maintained by Mac ports. I had some basic scripts using PyQT, VTK, matplotlib etc. I have been able to use Paraview but s

相关标签:
1条回答
  • 2020-12-30 15:35

    After running most of the examples in the Mayavi Gallery I have discovered that I needed to inform Traits to use Qt. This was done by setting an environment variable from within the script using a sys.environment() call. I decided to set the environment variable ETS_TOOLKIT to qt4 in my .profile as follows:**

    export ETS_TOOLKIT=qt4
    

    Mayavi2 now works as advertised!

    0 讨论(0)
提交回复
热议问题