title: How to get MayaVi2 to default to/use Qt rather than wx?
body: <p>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 seem a little heavy for my uses so I though I would try MayaVi2 (and TVTK).</p>
  
  <p>I downloaded and tried to manually installing but it proved troublesome. So thought I would bite the bullet and try Canopy (academic License). Based on this <a href="https://support.enthought.com/entries/23419888-VTK-Mayavi-on-Mac-OS-X" rel="nofollow">VTK/Mayavi on Mac OS X</a> which suggests all is good in the world of Qt, VTK and MayaVI,  I installed 64 bit Canopy.</p>
  
  <p>I am having trouble getting mayavi2 to work within the Canopy environment. It runs, but the console gets lots of errors, if I call up any dialog/setting box the "buttons" don't work properly.  Here is the first error (of a couple of screen fulls) when I try to start mayavi2:</p>
  
  <blockquote>
    <p>(Canopy 64bit) scratch_pad 501 $mayavi2  Traceback (most recent call
    last):   File
    "/Applications/Canopy.app/appdata/canopy-1.0.0.1160.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pyface/ui/wx/splash_screen.py",
    line 121, in _on_paint
        dc = wx.PaintDC(window)</p>
  </blockquote>
  
  <p>I am actually more interested in TVTK, so I tried some of the mayavi demos from the website gallery <a href="http://docs.enthought.com/mayavi/mayavi/auto/examples.html" rel="nofollow">http://docs.enthought.com/mayavi/mayavi/auto/examples.html</a>  The few I tried kind-a worked, that is they display a VTK (?) window/scene, I can interact with the VTK window. All is good until I open a settings/dialogue window, and then none of dialogue window "button" work and i have to force quit. Here is the last line of error when I open the "Setting" button in the <a href="http://docs.enthought.com/mayavi/mayavi/auto/mlab_helper_functions.html#mayavi.mlab.plot3d" rel="nofollow">plot3D demo</a>:</p>
  
  <blockquote>
    <p>simple demo: File
    "/Users/michael/Library/Enthought/Canopy_64bit/System/lib/python2.7/site-packages/wx/_core.py",
    line 9162, in DestroyChildren
        return <em>core</em>.Window_DestroyChildren(*args, **kwargs) wx._core.PyAssertionError: C++ assertion "GetEventHandler() == this"
    failed at /BUILD/wxPython-src-2.9.2.4/src/common/wincmn.cpp(468) in
    ~wxWindowBase(): any pushed event handlers must have been removed</p>
  </blockquote>
  
  <p>I even tried </p>
  
  <blockquote>
    <p>ipython --gui=wx</p>
  </blockquote>
  
  <p>(as suggested on the page) but in this case it crashes, no window.</p>
  
  <p>Based on the error messages on the console they all appear to be wx related.  It is my understanding the the Canopy environment is "self-contained", but could my old environment be somehow conflicting?  How would I even test this? </p>
  
  <p>Is there a way, environment variable, that mayavi2 can use Qt instead of wx? I don't use wx in any of my local python scripts, so unless it is needed in Canopy I am quite happy to disable, if that is an option.</p>
  
  <p>Any ideas?</p>