~ubuntu-branches/ubuntu/utopic/python-chaco/utopic

« back to all changes in this revision

Viewing changes to enthought/chaco/example_support.py

  • Committer: Bazaar Package Importer
  • Author(s): Varun Hiremath
  • Date: 2011-04-06 19:03:54 UTC
  • mfrom: (7.2.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110406190354-rwd55l2ezjecfo41
Tags: 3.4.0-2
d/rules: fix pyshared directory path (Closes: #621116)

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
# Force the selection of a valid toolkit.
39
39
#import enthought.enable.toolkit
40
40
if not ETSConfig.toolkit:
41
 
    for toolkit in ('wx', 'qt4'):
 
41
    for toolkit, toolkit_module in (('wx', 'wx'), ('qt4', 'PyQt4')):
42
42
        try:
43
 
            exec "import " + toolkit
 
43
            exec "import " + toolkit_module
44
44
            ETSConfig.toolkit = toolkit
45
45
            break
46
46
        except ImportError:
82
82
        app.MainLoop()
83
83
 
84
84
elif ETSConfig.toolkit == 'qt4':
85
 
    from PyQt4 import QtGui
 
85
    from enthought.qt import QtGui
86
86
 
87
87
    _app = QtGui.QApplication.instance()
88
88