~ubuntu-branches/ubuntu/trusty/python-enable/trusty

« back to all changes in this revision

Viewing changes to enthought/savage/traits/ui/toolkit.py

  • Committer: Bazaar Package Importer
  • Author(s): Varun Hiremath
  • Date: 2011-04-05 21:54:28 UTC
  • mfrom: (1.1.5 upstream)
  • mto: (8.2.1 sid)
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: james.westby@ubuntu.com-20110405215428-1x2wtubz3ok2kxaq
Tags: upstream-3.4.1
ImportĀ upstreamĀ versionĀ 3.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
 
22
22
def _init_toolkit():
23
 
    """ Initialise the current toolkit. 
 
23
    """ Initialise the current toolkit.
24
24
    """
25
25
 
26
26
    # Force Traits to decide on its toolkit if it hasn't already
33
33
        __import__(backend)
34
34
    except ImportError, SystemExit:
35
35
        raise ImportError, "Unable to import a Savage backend for the %s " \
36
 
            "toolkit." % ETSConfig.enable_toolkit
 
36
            "toolkit." % ETSConfig.toolkit
37
37
 
38
38
    # Save the imported toolkit module.
39
39
    global _toolkit_backend
51
51
    """
52
52
 
53
53
    mname, oname = name.split(':')
54
 
    
 
54
 
55
55
    class Unimplemented (object):
56
56
        """ This is returned if an object isn't implemented by the selected
57
57
            toolkit. It raises an exception if it is ever instantiated.