~ubuntu-branches/ubuntu/utopic/mayavi2/utopic

« back to all changes in this revision

Viewing changes to docs/source/mayavi/auto/qt_embedding.py

  • Committer: Package Import Robot
  • Author(s): Varun Hiremath
  • Date: 2012-04-23 16:36:45 UTC
  • mfrom: (1.1.11) (2.2.6 sid)
  • Revision ID: package-import@ubuntu.com-20120423163645-wojak95rklqlbi1y
Tags: 4.1.0-1
* New upstream release
* Bump Standards-Version to 3.9.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
import os
12
12
os.environ['ETS_TOOLKIT'] = 'qt4'
13
13
 
14
 
from PyQt4 import QtGui, QtCore
 
14
# To be able to use PySide or PyQt4 and not run in conflicts with traits,
 
15
# we need to import QtGui and QtCore from pyface.qt
 
16
from pyface.qt import QtGui, QtCore
 
17
# Alternatively, you can bypass this line, but you need to make sure that
 
18
# the following lines are executed before the import of PyQT:
 
19
#   import sip
 
20
#   sip.setapi('QString', 2)
15
21
 
16
22
from traits.api import HasTraits, Instance, on_trait_change, \
17
23
    Int, Dict