Skip to content

Commit

Permalink
Add relevant classes to envisage.ui.tasks.api (#322)
Browse files Browse the repository at this point in the history
* adding classes to envisage.ui.tasks.api and importing them from api in tests/examples

* Add TasksApplicationState to the api

Co-authored-by: Poruri Sai Rahul <rporuri@enthought.com>

Co-authored-by: Poruri Sai Rahul <rporuri@enthought.com>
  • Loading branch information
aaronayres35 and Poruri Sai Rahul authored Oct 21, 2020
1 parent 9d8ac7c commit 49ec67f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion envisage/tests/test_ids.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from envisage.core_plugin import CorePlugin
from envisage.plugins.ipython_kernel.api import IPythonKernelPlugin
from envisage.plugins.python_shell.python_shell_plugin import PythonShellPlugin
from envisage.ui.tasks.tasks_plugin import TasksPlugin
from envisage.ui.tasks.api import TasksPlugin


class TestIds(unittest.TestCase):
Expand Down
5 changes: 4 additions & 1 deletion envisage/ui/tasks/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@
#
# Thanks for using Enthought open source!
from .preferences_category import PreferencesCategory
from .preferences_dialog import PreferencesDialog, PreferencesTab
from .preferences_pane import PreferencesPane
from .task_extension import TaskExtension
from .task_factory import TaskFactory
from .task_window import TaskWindow
from .tasks_application import TasksApplication
from .task_window_event import TaskWindowEvent, VetoableTaskWindowEvent
from .tasks_application import TasksApplication, TasksApplicationState
from .tasks_plugin import TasksPlugin
2 changes: 1 addition & 1 deletion examples/plugins/tasks/attractors/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# Plugin imports.
from envisage.core_plugin import CorePlugin
from envisage.ui.tasks.tasks_plugin import TasksPlugin
from envisage.ui.tasks.api import TasksPlugin
from attractors.attractors_plugin import AttractorsPlugin

# Local imports.
Expand Down
3 changes: 1 addition & 2 deletions examples/plugins/tasks/ipython_kernel/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
IPYTHON_KERNEL_PROTOCOL,
IPythonKernelUIPlugin,
)
from envisage.ui.tasks.api import TasksApplication, TaskFactory
from envisage.ui.tasks.tasks_plugin import TasksPlugin
from envisage.ui.tasks.api import TasksApplication, TaskFactory, TasksPlugin
from pyface.qt import QtCore
from pyface.tasks.api import TaskWindowLayout
from pyface.util.guisupport import get_app_qt4
Expand Down

0 comments on commit 49ec67f

Please sign in to comment.