File: example_1.py

package info (click to toggle)
python-envisageplugins 3.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,616 kB
  • ctags: 1,970
  • sloc: python: 7,047; makefile: 11; sh: 11; lisp: 1
file content (22 lines) | stat: -rw-r--r-- 476 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
""" Example code used to test the code browser. """


# Enthought library imports.
from enthought.traits.api import HasTraits, Int



class Base(HasTraits):
    """ A class that inherits from 'Hastraits' directly. """

    # Some traits that explicitly specify a trait type.
    x = Int
    y = Int
    
    def foo(self):
        """ A method. """

    def bar(self):
        """ A method. """

#### EOF ######################################################################