#------------------------------------------------------------------------------
# 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
#------------------------------------------------------------------------------
# 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 #######################################################################
# 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
# 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
# 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
# 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
#------------------------------------------------------------------------------
# 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
#------------------------------------------------------------------------------
# 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
# 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
# Import the toolkit specific version.
from enthought.pyface.toolkit import toolkit_object
DockPane = toolkit_object('tasks.dock_pane:DockPane')
示例#27
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 bar control. """


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

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