示例#1
0
def main(root_dir):
    # Create a tutor and display the tutorial:
    path, name = os.path.splitext(root_dir)
    demo(dir_name=root_dir, title='Traits Demos')
示例#2
0
#-------------------------------------------------------------------------
#
#  Copyright (c) 2005, Enthought, Inc.
#  All rights reserved.
#
#  This software is provided without warranty under the terms of the BSD
#  license included in enthought/LICENSE.txt and may be redistributed only
#  under the conditions described in the aforementioned license.  The license
#  is also available online at http://www.enthought.com/licenses/BSD.txt
#
#  Thanks for using Enthought open source!
#
#  Author: David C. Morrill
#  Date:   09/15/2005
#
#-------------------------------------------------------------------------
""" Run the Traits UI demo.
"""

from __future__ import absolute_import
from traitsui.extras.demo import demo

demo()
#-------------------------------------------------------------------------------
#
#  Copyright (c) 2009-2010, Enthought, Inc.
#  All rights reserved.
#
#  This software is provided without warranty under the terms of the BSD
#  license included in enthought/LICENSE.txt and may be redistributed only
#  under the conditions described in the aforementioned license.  The license
#  is also available online at http://www.enthought.com/licenses/BSD.txt
#
#  Thanks for using Enthought open source!
#
#  Author: Vibha Srinivasan
#  Date: 02/03/2009
#
#-------------------------------------------------------------------------------
""" Run the Chaco demo.
"""

from traitsui.extras.demo import demo

# Uncomment the config_filename portion to see a tree editor based on the
# examples.cfg file.
demo(use_files=True, config_filename='demo.cfg', title='Chaco Demos')
示例#4
0
文件: demo.py 项目: 5n1p/traitsui
#-------------------------------------------------------------------------------
#
#  Copyright (c) 2005, Enthought, Inc.
#  All rights reserved.
#
#  This software is provided without warranty under the terms of the BSD
#  license included in enthought/LICENSE.txt and may be redistributed only
#  under the conditions described in the aforementioned license.  The license
#  is also available online at http://www.enthought.com/licenses/BSD.txt
#
#  Thanks for using Enthought open source!
#
#  Author: David C. Morrill
#  Date:   09/15/2005
#
#-------------------------------------------------------------------------------

""" Run the Traits UI demo.
"""

from traitsui.extras.demo import demo

demo()

示例#5
0
#-------------------------------------------------------------------------------
#
#  Copyright (c) 2009-2010, Enthought, Inc.
#  All rights reserved.
#
#  This software is provided without warranty under the terms of the BSD
#  license included in enthought/LICENSE.txt and may be redistributed only
#  under the conditions described in the aforementioned license.  The license
#  is also available online at http://www.enthought.com/licenses/BSD.txt
#
#  Thanks for using Enthought open source!
#
#  Author: Vibha Srinivasan
#  Date: 02/03/2009
#
#-------------------------------------------------------------------------------
""" Run the Chaco demo.
"""

from traitsui.extras.demo import demo

# Uncomment the config_filename portion to see a tree editor based on the
# examples.cfg file.
demo(use_files=True, config_filename='tutorials.cfg', title='Chaco Tutorials')
示例#6
0
文件: demo.py 项目: skailasa/chaco
#-------------------------------------------------------------------------------
#
#  Copyright (c) 2009-2010, Enthought, Inc.
#  All rights reserved.
#
#  This software is provided without warranty under the terms of the BSD
#  license included in enthought/LICENSE.txt and may be redistributed only
#  under the conditions described in the aforementioned license.  The license
#  is also available online at http://www.enthought.com/licenses/BSD.txt
#
#  Thanks for using Enthought open source!
#
#  Author: Vibha Srinivasan
#  Date: 02/03/2009
#
#-------------------------------------------------------------------------------

""" Run the Chaco demo.
"""

from traitsui.extras.demo import demo

demo(
    title='Chaco Demos'
)

示例#7
0
文件: demo.py 项目: 5n1p/chaco
#-------------------------------------------------------------------------------
#
#  Copyright (c) 2009-2010, Enthought, Inc.
#  All rights reserved.
#
#  This software is provided without warranty under the terms of the BSD
#  license included in enthought/LICENSE.txt and may be redistributed only
#  under the conditions described in the aforementioned license.  The license
#  is also available online at http://www.enthought.com/licenses/BSD.txt
#
#  Thanks for using Enthought open source!
#
#  Author: Vibha Srinivasan
#  Date: 02/03/2009
#
#-------------------------------------------------------------------------------

""" Run the Chaco demo.
"""

from traitsui.extras.demo import demo

# Uncomment the config_filename portion to see a tree editor based on the
# examples.cfg file.
demo(use_files=True,
     config_filename='demo.cfg',
     title = 'Chaco Demos'
    )

示例#8
0
文件: demo.py 项目: zijuzhang/chaco
#-------------------------------------------------------------------------------
#
#  Copyright (c) 2009-2010, Enthought, Inc.
#  All rights reserved.
#
#  This software is provided without warranty under the terms of the BSD
#  license included in enthought/LICENSE.txt and may be redistributed only
#  under the conditions described in the aforementioned license.  The license
#  is also available online at http://www.enthought.com/licenses/BSD.txt
#
#  Thanks for using Enthought open source!
#
#  Author: Vibha Srinivasan
#  Date: 02/03/2009
#
#-------------------------------------------------------------------------------
""" Run the Chaco demo.
"""

from traitsui.extras.demo import demo

demo(use_files=True, title='Chaco Demos')
示例#9
0
文件: tutor.py 项目: 5n1p/chaco
#-------------------------------------------------------------------------------
#
#  Copyright (c) 2009-2010, Enthought, Inc.
#  All rights reserved.
#
#  This software is provided without warranty under the terms of the BSD
#  license included in enthought/LICENSE.txt and may be redistributed only
#  under the conditions described in the aforementioned license.  The license
#  is also available online at http://www.enthought.com/licenses/BSD.txt
#
#  Thanks for using Enthought open source!
#
#  Author: Vibha Srinivasan
#  Date: 02/03/2009
#
#-------------------------------------------------------------------------------

""" Run the Chaco demo.
"""

from traitsui.extras.demo import demo

# Uncomment the config_filename portion to see a tree editor based on the
# examples.cfg file.
demo(use_files=True,
     config_filename='tutorials.cfg',
     title = 'Chaco Tutorials'
    )