Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move "array_editor" to "StandardEditors" contributed examples #1691

Merged
merged 7 commits into from
Jul 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/releases/upcoming/1691.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Move "array_editor" to "StandardEditors" contributed examples (#1691)
6 changes: 3 additions & 3 deletions docs/source/traitsui_user_manual/factories_basic.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ can specify the width of the text fields with the *width* parameter.
This editor is only suitable for small arrays. For editing large
two-dimensional arrays use the ArrayViewEditor instead

.. figure:: images/array_editors.png
.. figure:: images/ArrayEditor_demo.png
:alt: 3x3 integer; integer read-only; 4x4 float; float read-only

Figure 21: Array editors
Expand All @@ -63,8 +63,8 @@ The following code generates the editors shown in Figure 21.

.. rubric:: Example 14: Demonstration of array editors

.. literalinclude:: examples/array_editor.py
:start-at: array_editor.py
.. literalinclude:: ../../../traitsui/examples/demo/Standard_Editors/ArrayEditor_demo.py
:start-at: ArrayEditor

BooleanEditor()
```````````````
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#
# Thanks for using Enthought open source!

# array_editor.py -- Example of using array editors
"""Demo of the ArrayEditor"""

import numpy as np

Expand Down Expand Up @@ -38,5 +38,7 @@ class ArrayEditorTest(HasPrivateTraits):
)


demo = ArrayEditorTest()

if __name__ == '__main__':
ArrayEditorTest().configure_traits()
demo.configure_traits()