def to_toolkit(self): """ Create a new toolkit color object from a Color object. Returns ------- toolkit_color : toolkit object A toolkit color object, such as a Qt QColor or a Wx wx.Colour. """ from pyface.toolkit import toolkit_object rgba_to_toolkit_color = toolkit_object('color:rgba_to_toolkit_color') return rgba_to_toolkit_color(self.rgba)
def to_toolkit(self): """ Create a toolkit font object from the Font instance. Returns ------- toolkit_font : any A toolkit font which matches the property of the font as closely as possible given the constraints of the toolkit. """ from pyface.toolkit import toolkit_object font_to_toolkit_font = toolkit_object('font:font_to_toolkit_font') return font_to_toolkit_font(self)
def from_toolkit(cls, toolkit_color, **traits): """ Create a new Color object from a toolkit color object. Parameters ---------- toolkit_color : toolkit object A toolkit color object, such as a Qt QColor or a Wx wx.Colour. **traits Any additional trait values to be passed as keyword arguments. """ from pyface.toolkit import toolkit_object toolkit_color_to_rgba = toolkit_object('color:toolkit_color_to_rgba') rgba = toolkit_color_to_rgba(toolkit_color) return cls(rgba=rgba, **traits)
def from_toolkit(cls, toolkit_font): """ Create a Font from a toolkit font object. Parameters ---------- toolkit_font : any A toolkit font to be converted to a corresponding class instance, within the limitations of the options supported by the class. """ from pyface.toolkit import toolkit_object toolkit_font_to_properties = toolkit_object( 'font:toolkit_font_to_properties') return cls(**toolkit_font_to_properties(toolkit_font))
# (C) Copyright 2005-2020 Enthought, Inc., Austin, TX # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in 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! """ The implementation of a workbench window layout. """ # Import the toolkit specific version. from pyface.toolkit import toolkit_object WorkbenchWindowLayout = toolkit_object( "workbench.workbench_window_layout:WorkbenchWindowLayout")
# (C) Copyright 2005-2021 Enthought, Inc., Austin, TX # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in 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! """ A toolkit-specific menu manager that realizes itself in a menu control. - :attr:`~.MenuManager` """ # Import the toolkit specific version. from pyface.toolkit import toolkit_object MenuManager = toolkit_object("action.menu_manager:MenuManager")
#------------------------------------------------------------------------------ # 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 pyface.toolkit import toolkit_object MenuBarManager = toolkit_object('action.menu_bar_manager:MenuBarManager') #### EOF ######################################################################
# (C) Copyright 2005-2020 Enthought, Inc., Austin, TX # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in 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! """ A tool bar manager realizes itself in a tool bar control. """ # Import the toolkit specific version. from pyface.toolkit import toolkit_object ToolBarManager = toolkit_object("action.tool_bar_manager:ToolBarManager")
# (C) Copyright 2005-2021 Enthought, Inc., Austin, TX # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in 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! # Import the toolkit specific version. from pyface.toolkit import toolkit_object # WIP: Currently only supports qt4 backend. API might change without # prior notification PyMimeData = toolkit_object("mimedata:PyMimeData")
# (C) Copyright 2005-2022 Enthought, Inc., Austin, TX # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in 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! """ The toggle field widgets. """ # Import the toolkit specific version. from pyface.toolkit import toolkit_object ToggleField = toolkit_object("fields.toggle_field:ToggleField") CheckBoxField = toolkit_object("fields.toggle_field:CheckBoxField") RadioButtonField = toolkit_object("fields.toggle_field:RadioButtonField") ToggleButtonField = toolkit_object("fields.toggle_field:ToggleButtonField")
# Import the toolkit specific version. from pyface.toolkit import toolkit_object TaskWindowBackend = toolkit_object( 'tasks.task_window_backend:TaskWindowBackend')
#------------------------------------------------------------------------------ # 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 pyface.toolkit import toolkit_object MenuManager = toolkit_object('action.menu_manager:MenuManager') ### EOF #######################################################################
#------------------------------------------------------------------------------ # 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 pyface.toolkit import toolkit_object Wizard = toolkit_object('wizard.wizard:Wizard') #### EOF ######################################################################
# Import the toolkit specific version. from pyface.toolkit import toolkit_object TaskPane = toolkit_object('tasks.task_pane:TaskPane')
# Copyright (c) 2017, 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! """ The implementation of a tree control with a model/ui architecture. """ # Import the toolkit specific version. from __future__ import absolute_import from pyface.toolkit import toolkit_object Tree = toolkit_object('tree.tree:Tree')
# Import the toolkit specific version. from pyface.toolkit import toolkit_object AdvancedEditorAreaPane = toolkit_object('tasks.advanced_editor_area_pane:' 'AdvancedEditorAreaPane')
#------------------------------------------------------------------------------ # 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 pyface.toolkit import toolkit_object StatusBarManager = toolkit_object('action.status_bar_manager:StatusBarManager') ### EOF #######################################################################
# (C) Copyright 2005-2022 Enthought, Inc., Austin, TX # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in 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! """ The implementation of EventLoopHelper. """ # Import the toolkit specific version. from pyface.toolkit import toolkit_object EventLoopHelper = toolkit_object("util.event_loop_helper:EventLoopHelper")
# (C) Copyright 2005-2021 Enthought, Inc., Austin, TX # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in 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! """ The implementation of a wizard. """ # Import the toolkit specific version. from pyface.toolkit import toolkit_object Wizard = toolkit_object("wizard.wizard:Wizard")
def _create_timer(self, event): klass = toolkit_object("timer.timer:Timer") self._timer = klass(self.hover_delay, self.on_timer)
# Import the toolkit specific version. from pyface.toolkit import toolkit_object SplitEditorAreaPane = toolkit_object('tasks.split_editor_area_pane:' 'SplitEditorAreaPane') EditorAreaWidget = toolkit_object('tasks.split_editor_area_pane:' 'EditorAreaWidget')
#------------------------------------------------------------------------------ # 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 pyface.toolkit import toolkit_object View = toolkit_object('workbench.view:View') ### EOF #######################################################################
# (C) Copyright 2005-2022 Enthought, Inc., Austin, TX # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in 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! """ - :attr:`~.SplitEditorAreaPane` - :attr:`~.EditorAreaWidget` """ from pyface.toolkit import toolkit_object SplitEditorAreaPane = toolkit_object("tasks.split_editor_area_pane:" "SplitEditorAreaPane") EditorAreaWidget = toolkit_object("tasks.split_editor_area_pane:" "EditorAreaWidget")
# Import the toolkit specific version. from pyface.toolkit import toolkit_object Editor = toolkit_object('tasks.editor:Editor')
# (C) Copyright 2005-2020 Enthought, Inc., Austin, TX # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in 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! """ The text field widget. """ # Import the toolkit specific version. from pyface.toolkit import toolkit_object TextField = toolkit_object("fields.text_field:TextField")
# Copyright (c) 2017, 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! """ A viewer based on a tree control. """ # Import the toolkit specific version. from __future__ import absolute_import from pyface.toolkit import toolkit_object TreeViewer = toolkit_object('viewer.tree_viewer:TreeViewer')
# Copyright (c) 2017, 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! """ A viewer based on a table control. """ # Import the toolkit specific version. from __future__ import absolute_import from pyface.toolkit import toolkit_object TableViewer = toolkit_object('viewer.table_viewer:TableViewer')
#------------------------------------------------------------------------------ # 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 pyface.toolkit import toolkit_object WizardPage = toolkit_object('wizard.wizard_page:WizardPage') #### EOF ######################################################################
# (C) Copyright 2005-2020 Enthought, Inc., Austin, TX # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in 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! # Import the toolkit specific version. from pyface.toolkit import toolkit_object DockPane = toolkit_object("tasks.dock_pane:DockPane")
# Author: Prabhu Ramachandran # Copyright (c) 2006-2018, Enthought, Inc. # License: BSD Style. """ Event-loop based timers that perform actions periodically. Note that if a timer goes out of scope without a reference to being saved, there is nothing keeping the underlying toolkit timer alive and it will be garbage collected, meaning that the timer will stop firing (or indeed, may never fire). """ from pyface.toolkit import toolkit_object from pyface.timer.i_timer import MCallbackTimer, MEventTimer PyfaceTimer = toolkit_object('timer.timer:PyfaceTimer') class EventTimer(MEventTimer, PyfaceTimer): pass class CallbackTimer(MCallbackTimer, PyfaceTimer): pass class Timer(CallbackTimer): """ Subclass of CallbackTimer that matches the old API """ def __init__(self, millisecs, callable, *args, **kwargs): """ Initialize and start the timer.
# # Written by: David C. Morrill # # Date: 05/18/2005 # # (c) Copyright 2005 by Enthought, Inc. # #------------------------------------------------------------------------------- #------------------------------------------------------------------------------- # Imports: #------------------------------------------------------------------------------- # Import the toolkit specific version. from 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 ):
# Copyright (c) 2017, 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! """ The preference dialog. """ # Import the toolkit specific version. from __future__ import absolute_import from pyface.toolkit import toolkit_object TreeViewer = toolkit_object('preference.preference_dialog:PreferenceDialog')
# (C) Copyright 2005-2020 Enthought, Inc., Austin, TX # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in 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! # Import the toolkit specific version. from pyface.toolkit import toolkit_object TaskPane = toolkit_object("tasks.task_pane:TaskPane")
# (C) Copyright 2005-2022 Enthought, Inc., Austin, TX # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in 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! """ - :attr:`~.TaskWindowBackend` """ from pyface.toolkit import toolkit_object TaskWindowBackend = toolkit_object( "tasks.task_window_backend:TaskWindowBackend")
# (C) Copyright 2005-2021 Enthought, Inc., Austin, TX # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in 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! """ The implementation of a page in a wizard. """ # Import the toolkit specific version. from pyface.toolkit import toolkit_object WizardPage = toolkit_object("wizard.wizard_page:WizardPage")
# is also available online at http://www.enthought.com/licenses/BSD.txt # # Thanks for using Enthought open source! """ Event-loop based timers that perform actions periodically. Note that if a timer goes out of scope without a reference to being saved, there is nothing keeping the underlying toolkit timer alive and it will be garbage collected, meaning that the timer will stop firing (or indeed, may never fire). """ from pyface.toolkit import toolkit_object from pyface.timer.i_timer import MCallbackTimer, MEventTimer PyfaceTimer = toolkit_object("timer.timer:PyfaceTimer") class EventTimer(MEventTimer, PyfaceTimer): pass class CallbackTimer(MCallbackTimer, PyfaceTimer): pass class Timer(CallbackTimer): """ Subclass of CallbackTimer that matches the old API """ def __init__(self, millisecs, callable, *args, **kwargs): """ Initialize and start the timer.
"""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 pyface.toolkit import toolkit_object Timer = toolkit_object("timer.timer:Timer")
# Import the toolkit specific version. from pyface.toolkit import toolkit_object # WIP: Currently only supports qt4 backend. API might change without # prior notification PyMimeData = toolkit_object('mimedata:PyMimeData')
#------------------------------------------------------------------------------ # 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 pyface.toolkit import toolkit_object Editor = toolkit_object('workbench.editor:Editor') ### EOF #######################################################################
# (C) Copyright 2005-2022 Enthought, Inc., Austin, TX # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in 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! """ A toolkit-specific menu bar manager that realizes itself in a menu bar control. - :attr:`~.MenuBarManager` """ # Import the toolkit specific version. from pyface.toolkit import toolkit_object MenuBarManager = toolkit_object("action.menu_bar_manager:MenuBarManager")
#------------------------------------------------------------------------------ # 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 pyface.toolkit import toolkit_object ToolPaletteManager = toolkit_object('action.tool_palette_manager:ToolPaletteManager') ### EOF #######################################################################
# (C) Copyright 2005-2022 Enthought, Inc., Austin, TX # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in 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! """ A toolkit-specific tool bar manager that realizes itself in a tool palette control. - :attr:`~.ToolPaletteManager` """ # Import the toolkit specific version. from pyface.toolkit import toolkit_object ToolPaletteManager = toolkit_object( "action.tool_palette_manager:ToolPaletteManager" )
# Import the toolkit specific version. from pyface.toolkit import toolkit_object DockPane = toolkit_object('tasks.dock_pane:DockPane')
from __future__ import absolute_import from traits.testing.unittest_tools import unittest from pyface.gui import GUI from pyface.toolkit import toolkit_object from ..progress_dialog import ProgressDialog ModalDialogTester = toolkit_object('util.modal_dialog_tester:ModalDialogTester') no_modal_dialog_tester = (ModalDialogTester.__name__ == 'Unimplemented') class TestDialog(unittest.TestCase): def setUp(self): self.gui = GUI() self.dialog = ProgressDialog() def test_create(self): # test that creation and destruction works as expected self.dialog._create() self.gui.process_events() self.assertIsNotNone(self.dialog.control) self.assertIsNotNone(self.dialog.progress_bar) self.assertIsNotNone(self.dialog._message_control) self.assertIsNone(self.dialog._elapsed_control) self.assertIsNone(self.dialog._estimated_control) self.assertIsNone(self.dialog._remaining_control) self.dialog.destroy()
# Author: Enthought, Inc. # Description: <Enthought pyface package component> #------------------------------------------------------------------------------ """ An action manager item that represents an actual action. """ # Enthought library imports. from 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 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 ###############################################
#------------------------------------------------------------------------------ # 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 pyface.toolkit import toolkit_object ToolBarManager = toolkit_object('action.tool_bar_manager:ToolBarManager') ### EOF #######################################################################
import unittest from pyface.toolkit import toolkit_object from traits.api import HasTraits, Instance, Str from traitsui.api import InstanceEditor, Item, View from traitsui.tests._tools import ( BaseTestMixin, requires_toolkit, ToolkitName, ) from traitsui.testing.api import (DisplayedText, KeySequence, MouseClick, UITester) ModalDialogTester = toolkit_object( "util.modal_dialog_tester:ModalDialogTester") no_modal_dialog_tester = ModalDialogTester.__name__ == "Unimplemented" class EditedInstance(HasTraits): value = Str() traits_view = View(Item("value"), buttons=["OK"]) class ObjectWithInstance(HasTraits): inst = Instance(EditedInstance, ()) def get_view(style): return View(Item("inst", style=style), buttons=["OK"])
# ------------------------------------------------------------------------------ # 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 pyface.toolkit import toolkit_object WorkbenchWindowLayout = toolkit_object("workbench.workbench_window_layout:WorkbenchWindowLayout") ### EOF #######################################################################
# (C) Copyright 2005-2022 Enthought, Inc., Austin, TX # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in 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! """ A toolkit-specific status bar manager that realizes itself in a status bar control. - :attr:`~.StatusBarManager` """ # Import the toolkit specific version. from pyface.toolkit import toolkit_object StatusBarManager = toolkit_object("action.status_bar_manager:StatusBarManager")
#------------------------------------------------------------------------------ # Copyright (c) 2017, 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 text field widget. """ # Import the toolkit specific version. from pyface.toolkit import toolkit_object TextField = toolkit_object('fields.text_field:TextField')
# Copyright (c) 2019, 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 combo field widget. """ # Import the toolkit specific version. from pyface.toolkit import toolkit_object ComboField = toolkit_object('fields.combo_field:ComboField')
# (C) Copyright 2005-2020 Enthought, Inc., Austin, TX # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in 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! import unittest from pyface.tasks.api import SplitEditorAreaPane from pyface.toolkit import toolkit_object GuiTestAssistant = toolkit_object("util.gui_test_assistant:GuiTestAssistant") no_gui_test_assistant = GuiTestAssistant.__name__ == "Unimplemented" @unittest.skipIf(no_gui_test_assistant, "No GuiTestAssistant") class TestSplitEditorAreaPane(unittest.TestCase, GuiTestAssistant): def setUp(self): GuiTestAssistant.setUp(self) self.area_pane = SplitEditorAreaPane() def tearDown(self): if self.area_pane.control is not None: with self.delete_widget(self.area_pane.control): self.area_pane.destroy() GuiTestAssistant.tearDown(self) def test_create_destroy(self):
#------------------------------------------------------------------------------ # Copyright (c) 2019, 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 spin field widget. """ # Import the toolkit specific version. from pyface.toolkit import toolkit_object SpinField = toolkit_object('fields.spin_field:SpinField')