コード例 #1
0
ファイル: tutor.py プロジェクト: ternence-li/traits
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()
コード例 #3
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='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'
    )