コード例 #1
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: Enthought, Inc.
# Description: <Enthought pyface package component>
#------------------------------------------------------------------------------
""" The implementation of a workbench window layout. """


# Import the toolkit specific version.
from enthought.pyface.toolkit import toolkit_object

WorkbenchWindowLayout = toolkit_object(
    'workbench.workbench_window_layout:WorkbenchWindowLayout'
)

### EOF #######################################################################
コード例 #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: Enthought, Inc.
# Description: <Enthought pyface package component>
#------------------------------------------------------------------------------
""" A status bar manager realizes itself in a status bar control. """


# Import the toolkit specific version.
from enthought.pyface.toolkit import toolkit_object
StatusBarManager = toolkit_object('action.status_bar_manager:StatusBarManager')

### EOF #######################################################################
コード例 #3
0
ファイル: editor.py プロジェクト: enthought/traitsgui
#------------------------------------------------------------------------------
# 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: Enthought, Inc.
# Description: <Enthought pyface package component>
#------------------------------------------------------------------------------
""" The implementation of a workbench editor. """


# Import the toolkit specific version.
from enthought.pyface.toolkit import toolkit_object
Editor = toolkit_object('workbench.editor:Editor')

### EOF #######################################################################
コード例 #4
0
# Import the toolkit specific version.
from enthought.pyface.toolkit import toolkit_object
AdvancedEditorAreaPane = toolkit_object('tasks.advanced_editor_area_pane:'
                                        'AdvancedEditorAreaPane')
コード例 #5
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: Enthought, Inc.
# Description: <Enthought pyface package component>
#------------------------------------------------------------------------------
""" The implementation of a workbench window layout. """

# Import the toolkit specific version.
from enthought.pyface.toolkit import toolkit_object

WorkbenchWindowLayout = toolkit_object(
    'workbench.workbench_window_layout:WorkbenchWindowLayout')

### EOF #######################################################################
コード例 #6
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: Enthought, Inc.
# Description: <Enthought pyface package component>
#------------------------------------------------------------------------------
""" The implementation of a page in a wizard. """


# Import the toolkit specific version.
from enthought.pyface.toolkit import toolkit_object
WizardPage = toolkit_object('wizard.wizard_page:WizardPage')

#### EOF ######################################################################
コード例 #7
0
ファイル: action_item.py プロジェクト: sjl421/code-2
# Author: Enthought, Inc.
# Description: <Enthought pyface package component>
#------------------------------------------------------------------------------
""" An action manager item that represents an actual action. """


# Enthought library imports.
from enthought.traits.api import Any, Instance, List, Property, Str

# Local imports.
from action import Action
from action_manager_item import ActionManagerItem

# Import the toolkit specific versions of the internal classes.
from enthought.pyface.toolkit import toolkit_object
_MenuItem = toolkit_object('action.action_item:_MenuItem')
_Tool = toolkit_object('action.action_item:_Tool')
_PaletteTool = toolkit_object('action.action_item:_PaletteTool')


class ActionItem(ActionManagerItem):
    """ An action manager item that represents an actual action. """

    #### 'ActionManagerItem' interface ########################################

    # The item's unique identifier ('unique' in this case means unique within
    # its group).
    id = Property(Str)

    #### 'ActionItem' interface ###############################################
コード例 #8
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: Enthought, Inc.
# Description: <Enthought pyface package component>
#------------------------------------------------------------------------------
""" A menu manager realizes itself in a menu control. """

# Import the toolkit specific version.
from enthought.pyface.toolkit import toolkit_object
MenuManager = toolkit_object('action.menu_manager:MenuManager')

### EOF #######################################################################
コード例 #9
0
#
#  Written by: David C. Morrill
#
#  Date: 05/18/2005
#
#  (c) Copyright 2005 by Enthought, Inc.
#
#-------------------------------------------------------------------------------

#-------------------------------------------------------------------------------
#  Imports:
#-------------------------------------------------------------------------------

# Import the toolkit specific version.
from enthought.pyface.toolkit import toolkit_object
DoLaterTimer = toolkit_object('timer.do_later:DoLaterTimer')

#-------------------------------------------------------------------------------
#  Does something 50 milliseconds from now:
#-------------------------------------------------------------------------------


def do_later(callable, *args, **kw_args):
    """ Does something 50 milliseconds from now.
    """
    DoLaterTimer(50, callable, args, kw_args)


#-------------------------------------------------------------------------------
#  Does something after some specified time interval:
#-------------------------------------------------------------------------------
コード例 #10
0
#  
#  Written by: David C. Morrill
#  
#  Date: 05/18/2005
#  
#  (c) Copyright 2005 by Enthought, Inc.
#  
#-------------------------------------------------------------------------------

#-------------------------------------------------------------------------------
#  Imports:  
#-------------------------------------------------------------------------------

# Import the toolkit specific version.
from enthought.pyface.toolkit import toolkit_object
DoLaterTimer = toolkit_object('timer.do_later:DoLaterTimer')

#-------------------------------------------------------------------------------
#  Does something 50 milliseconds from now:  
#-------------------------------------------------------------------------------

def do_later ( callable, *args, **kw_args ):
    """ Does something 50 milliseconds from now.
    """
    DoLaterTimer( 50, callable, args, kw_args )
    
#-------------------------------------------------------------------------------
#  Does something after some specified time interval:  
#-------------------------------------------------------------------------------
        
def do_after ( interval, callable, *args, **kw_args ):
コード例 #11
0
ファイル: view.py プロジェクト: sjl421/code-2
#------------------------------------------------------------------------------
# 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: Enthought, Inc.
# Description: <Enthought pyface package component>
#------------------------------------------------------------------------------
""" The implementation of a workbench view. """

# Import the toolkit specific version.
from enthought.pyface.toolkit import toolkit_object
View = toolkit_object('workbench.view:View')

### EOF #######################################################################
コード例 #12
0
ファイル: task_pane.py プロジェクト: enthought/traitsgui
# Import the toolkit specific version.
from enthought.pyface.toolkit import toolkit_object
TaskPane = toolkit_object('tasks.task_pane:TaskPane')
コード例 #13
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: Enthought, Inc.
# Description: <Enthought pyface package component>
#------------------------------------------------------------------------------
""" A status bar manager realizes itself in a status bar control. """

# Import the toolkit specific version.
from enthought.pyface.toolkit import toolkit_object
StatusBarManager = toolkit_object('action.status_bar_manager:StatusBarManager')

### EOF #######################################################################
コード例 #14
0
# Import the toolkit specific version.
from enthought.pyface.toolkit import toolkit_object
EditorAreaPane = toolkit_object('tasks.editor_area_pane:EditorAreaPane')
コード例 #15
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: Enthought, Inc.
# Description: <Enthought pyface package component>
#------------------------------------------------------------------------------
""" A tool bar manager realizes itself in a tool palette control. """


# Import the toolkit specific version.
from enthought.pyface.toolkit import toolkit_object
ToolPaletteManager = toolkit_object('action.tool_palette_manager:ToolPaletteManager')

### EOF #######################################################################
コード例 #16
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: Enthought, Inc.
# Description: <Enthought pyface package component>
#------------------------------------------------------------------------------
""" A menu bar manager realizes itself in errr, a menu bar control. """

# Import the toolkit specific version.
from enthought.pyface.toolkit import toolkit_object
MenuBarManager = toolkit_object('action.menu_bar_manager:MenuBarManager')

#### EOF ######################################################################
コード例 #17
0
ファイル: editor.py プロジェクト: enthought/traitsgui
# Import the toolkit specific version.
from enthought.pyface.toolkit import toolkit_object
Editor = toolkit_object('tasks.editor:Editor')
コード例 #18
0
# Import the toolkit specific version.
from enthought.pyface.toolkit import toolkit_object
TaskWindowBackend = toolkit_object(
    'tasks.task_window_backend:TaskWindowBackend')
コード例 #19
0
ファイル: timer.py プロジェクト: sjl421/code-2
"""A timer that invokes a specified callback periodically.
"""
# Author: Prabhu Ramachandran <*****@*****.**>
# Copyright (c) 2006-2007,  Enthought, Inc.
# License: BSD Style.

# Import the toolkit specific version.
from enthought.pyface.toolkit import toolkit_object
Timer = toolkit_object('timer.timer:Timer')
コード例 #20
0
ファイル: menu_manager.py プロジェクト: enthought/traitsgui
#------------------------------------------------------------------------------
# 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: Enthought, Inc.
# Description: <Enthought pyface package component>
#------------------------------------------------------------------------------
""" A menu manager realizes itself in a menu control. """


# Import the toolkit specific version.
from enthought.pyface.toolkit import toolkit_object
MenuManager = toolkit_object('action.menu_manager:MenuManager')

### EOF #######################################################################
コード例 #21
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: Enthought, Inc.
# Description: <Enthought pyface package component>
#------------------------------------------------------------------------------
""" The implementation of a wizard. """

# Import the toolkit specific version.
from enthought.pyface.toolkit import toolkit_object
Wizard = toolkit_object('wizard.wizard:Wizard')

#### EOF ######################################################################
コード例 #22
0
ファイル: view.py プロジェクト: enthought/traitsgui
#------------------------------------------------------------------------------
# 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: Enthought, Inc.
# Description: <Enthought pyface package component>
#------------------------------------------------------------------------------
""" The implementation of a workbench view. """


# Import the toolkit specific version.
from enthought.pyface.toolkit import toolkit_object
View = toolkit_object('workbench.view:View')

### EOF #######################################################################
コード例 #23
0
ファイル: action_item.py プロジェクト: enthought/traitsgui
# Author: Enthought, Inc.
# Description: <Enthought pyface package component>
#------------------------------------------------------------------------------
""" An action manager item that represents an actual action. """


# Enthought library imports.
from enthought.traits.api import Any, Instance, List, Property, Str

# Local imports.
from action import Action
from action_manager_item import ActionManagerItem

# Import the toolkit specific versions of the internal classes.
from enthought.pyface.toolkit import toolkit_object
_MenuItem = toolkit_object('action.action_item:_MenuItem')
_Tool = toolkit_object('action.action_item:_Tool')
_PaletteTool = toolkit_object('action.action_item:_PaletteTool')


class ActionItem(ActionManagerItem):
    """ An action manager item that represents an actual action. """

    #### 'ActionManagerItem' interface ########################################

    # The item's unique identifier ('unique' in this case means unique within
    # its group).
    id = Property(Str)

    #### 'ActionItem' interface ###############################################
コード例 #24
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: Enthought, Inc.
# Description: <Enthought pyface package component>
#------------------------------------------------------------------------------
""" A menu bar manager realizes itself in errr, a menu bar control. """


# Import the toolkit specific version.
from enthought.pyface.toolkit import toolkit_object
MenuBarManager = toolkit_object('action.menu_bar_manager:MenuBarManager')

#### EOF ######################################################################
コード例 #25
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: Enthought, Inc.
# Description: <Enthought pyface package component>
#------------------------------------------------------------------------------
""" The implementation of a wizard. """

# Import the toolkit specific version.
from enthought.pyface.toolkit import toolkit_object
Wizard = toolkit_object('wizard.wizard:Wizard')

#### EOF ######################################################################
コード例 #26
0
ファイル: dock_pane.py プロジェクト: enthought/traitsgui
# Import the toolkit specific version.
from enthought.pyface.toolkit import toolkit_object
DockPane = toolkit_object('tasks.dock_pane:DockPane')
コード例 #27
0
ファイル: tool_bar_manager.py プロジェクト: sjl421/code-2
#------------------------------------------------------------------------------
# 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: Enthought, Inc.
# Description: <Enthought pyface package component>
#------------------------------------------------------------------------------
""" A tool bar manager realizes itself in a tool bar control. """


# Import the toolkit specific version.
from enthought.pyface.toolkit import toolkit_object
ToolBarManager = toolkit_object('action.tool_bar_manager:ToolBarManager')

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