| 1 |
# (C) Copyright 2007-2025 Enthought, Inc., Austin, TX |
| 2 |
# All rights reserved. |
| 3 |
# |
| 4 |
# This software is provided without warranty under the terms of the BSD |
| 5 |
# license included in LICENSE.txt and may be redistributed only under |
| 6 |
# the conditions described in the aforementioned license. The license |
| 7 |
# is also available online at http://www.enthought.com/licenses/BSD.txt |
| 8 |
# |
| 9 |
# Thanks for using Enthought open source! |
| 10 |
|
| 11 |
# Enthought library imports. |
| 12 |
from pyface.tasks.api import TraitsDockPane |
| 13 |
from traits.api import HasTraits, Instance |
| 14 |
from traitsui.api import Item, View |
| 15 |
|
| 16 |
|
| 17 |
class ModelConfigPane(TraitsDockPane): |
| 18 |
"""A simple dock pane for editing an attractor model's configuration |
| 19 |
options. |
| 20 |
""" |
| 21 |
|
| 22 |
#### 'ITaskPane' interface ################################################ |
| 23 |
|
| 24 |
id = "example.attractors.model_config_pane" |
| 25 |
name = "Model Configuration" |
| 26 |
|
| 27 |
#### 'ModelConfigPane' interface ########################################## |
| 28 |
|
| 29 |
model = Instance(HasTraits) |
| 30 |
|
| 31 |
view = View( |
| 32 |
Item("pane.model", style="custom", show_label=False), resizable=True |
| 33 |
) |