Skip to content

Commit

Permalink
Merged in prabhuramachandran/pysph/make-qt-default (pull request #153)
Browse files Browse the repository at this point in the history
Make qt4 the default toolkit...
  • Loading branch information
prabhuramachandran committed Apr 1, 2015
2 parents ddfa9f5 + 4589b23 commit 1cef438
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pysph/tools/mayavi_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@
import os
import os.path

if not os.environ.get('ETS_TOOLKIT'):
# Set the default toolkit to qt4 unless the user has explicitly
# set the default manually via the env var.
try:
from traits.etsconfig.api import ETSConfig
except ImportError:
from enthought.etsconfig.api import ETSConfig
ETSConfig.toolkit = 'qt4'

try:
from traits.api import (Array, Dict, HasTraits, Instance, on_trait_change,
List, Str, Int, Range, Float, Bool, Button,
Expand Down

0 comments on commit 1cef438

Please sign in to comment.