Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed imports

  • Loading branch information...
commit 95e0bed62b83f311dba5c03c6b175ca96e4e70b4 1 parent 44cc4f6
Ilan Schnell authored
Showing with 814 additions and 814 deletions.
  1. +1 −1  LICENSE.txt
  2. +1 −1  TODO.txt
  3. +1 −1  docs/CHANGES.txt
  4. +8 −8 docs/source/TUIUG/advanced_view.rst
  5. +5 −5 docs/source/TUIUG/custom_view.rst
  6. +16 −16 docs/source/TUIUG/factories_advanced_extra.rst
  7. +9 −9 docs/source/TUIUG/factories_basic.rst
  8. +7 −7 docs/source/TUIUG/factory_intro.rst
  9. +3 −3 docs/source/TUIUG/handler.rst
  10. +4 −4 docs/source/TUIUG/intro.rst
  11. +7 −7 docs/source/TUIUG/themes.rst
  12. +8 −8 docs/source/TUIUG/view.rst
  13. +25 −25 docs/source/traits_user_manual/advanced.rst
  14. +13 −13 docs/source/traits_user_manual/custom.rst
  15. +4 −4 docs/source/traits_user_manual/deferring.rst
  16. +16 −16 docs/source/traits_user_manual/defining.rst
  17. +3 −3 docs/source/traits_user_manual/intro.rst
  18. +4 −4 docs/source/traits_user_manual/notification.rst
  19. +2 −2 docs/source/tutorials/code_snippets/code_block1.py
  20. +2 −2 docs/source/tutorials/code_snippets/container.py
  21. +1 −1  docs/source/tutorials/code_snippets/echo_box.py
  22. +1 −1  docs/source/tutorials/code_snippets/event_loop.py
  23. +3 −3 docs/source/tutorials/code_snippets/interactive.py
  24. +5 −5 docs/source/tutorials/code_snippets/mpl_figure_editor.py
  25. +2 −2 docs/source/tutorials/code_snippets/traits_thread.py
  26. +18 −18 docs/source/tutorials/traits_ui_scientific_app.rst
  27. +2 −2 examples/demo/Advanced/Adapted_tree_editor_demo.py
  28. +2 −2 examples/demo/Advanced/Apply_Revert_handler_demo.py
  29. +4 −4 examples/demo/Advanced/Auto_editable_readonly_table_cells.py
  30. +3 −3 examples/demo/Advanced/Auto_update_TabularEditor_demo.py
  31. +2 −2 examples/demo/Advanced/Date_editor_demo.py
  32. +2 −2 examples/demo/Advanced/Dynamic_EnumEditor_demo.py
  33. +2 −2 examples/demo/Advanced/Dynamic_range_trait_and_editor.py
  34. +4 −4 examples/demo/Advanced/Dynamic_views_demo.py
  35. +4 −4 examples/demo/Advanced/HDF5_tree_demo.py
  36. +2 −2 examples/demo/Advanced/History_demo.py
  37. +2 −2 examples/demo/Advanced/Invalid_state_handling.py
  38. +2 −2 examples/demo/Advanced/ListStrEditor_demo.py
  39. +3 −3 examples/demo/Advanced/List_editor_notebook_selection_demo.py
  40. +5 −5 examples/demo/Advanced/List_editors_demo.py
  41. +2 −2 examples/demo/Advanced/MVC_demo.py
  42. +3 −3 examples/demo/Advanced/Multi_select_string_list.py
  43. +2 −2 examples/demo/Advanced/Multi_thread_demo.py
  44. +2 −2 examples/demo/Advanced/Multi_thread_demo_2.py
  45. +3 −3 examples/demo/Advanced/NumPy_array_tabular_editor_demo.py
  46. +3 −3 examples/demo/Advanced/NumPy_array_view_editor_demo.py
  47. +2 −2 examples/demo/Advanced/Popup_Dialog_demo.py
  48. +3 −3 examples/demo/Advanced/Property_List_demo.py
  49. +3 −3 examples/demo/Advanced/Scrubber_editor_demo.py
  50. +2 −2 examples/demo/Advanced/Settable_cached_property.py
  51. +3 −3 examples/demo/Advanced/Statusbar_demo.py
  52. +5 −5 examples/demo/Advanced/String_list_ui_editor.py
  53. +4 −4 examples/demo/Advanced/Table_editor_with_checkbox_column.py
  54. +4 −4 examples/demo/Advanced/Table_editor_with_context_menu_demo.py
  55. +3 −3 examples/demo/Advanced/Table_editor_with_live_search_and_cell_editor.py
  56. +4 −4 examples/demo/Advanced/Tabular_editor_demo.py
  57. +2 −2 examples/demo/Advanced/Time_editor_demo.py
  58. +8 −8 examples/demo/Applications/Python_source_browser.py
  59. +2 −2 examples/demo/Applications/converter.py
  60. +2 −2 examples/demo/Dynamic_Forms/dynamic_form_using_instances.py
  61. +2 −2 examples/demo/Dynamic_Forms/dynamic_range_editor.py
  62. +2 −2 examples/demo/Dynamic_Forms/dynamic_selector.py
  63. +2 −2 examples/demo/Dynamic_Forms/simple_enabled_when.py
  64. +2 −2 examples/demo/Dynamic_Forms/visible_when.py
  65. +6 −6 examples/demo/Extras/Image_editor_demo.py
  66. +3 −3 examples/demo/Extras/LED_display.py
  67. +4 −4 examples/demo/Extras/animated_GIF.py
  68. +3 −3 examples/demo/Extras/windows/flash.py
  69. +3 −3 examples/demo/Extras/windows/internet_explorer.py
  70. +2 −2 examples/demo/Standard_Editors/BooleanEditor_demo.py
  71. +2 −2 examples/demo/Standard_Editors/ButtonEditor_demo.py
  72. +2 −2 examples/demo/Standard_Editors/CheckListEditor_demo.py
  73. +2 −2 examples/demo/Standard_Editors/CodeEditor_demo.py
  74. +2 −2 examples/demo/Standard_Editors/ColorEditor_demo.py
  75. +2 −2 examples/demo/Standard_Editors/CompoundEditor_demo.py
  76. +2 −2 examples/demo/Standard_Editors/DirectoryEditor_demo.py
  77. +2 −2 examples/demo/Standard_Editors/EnumEditor_demo.py
  78. +2 −2 examples/demo/Standard_Editors/FileEditor_demo.py
  79. +3 −3 examples/demo/Standard_Editors/File_Dialog/File_Open.py
  80. +5 −5 examples/demo/Standard_Editors/File_Dialog/File_Open_with_Custom_Extension.py
  81. +4 −4 examples/demo/Standard_Editors/File_Dialog/File_Open_with_FileInfo_Extension.py
  82. +4 −4 examples/demo/Standard_Editors/File_Dialog/File_Open_with_ImageInfo_Extension.py
  83. +4 −4 examples/demo/Standard_Editors/File_Dialog/File_Open_with_Multiple_Extensions.py
  84. +4 −4 examples/demo/Standard_Editors/File_Dialog/File_Open_with_TextInfo_Extension.py
  85. +2 −2 examples/demo/Standard_Editors/FontEditor_demo.py
  86. +2 −2 examples/demo/Standard_Editors/HTMLEditor_demo.py
  87. +2 −2 examples/demo/Standard_Editors/ImageEnumEditor_demo.py
  88. +2 −2 examples/demo/Standard_Editors/InstanceEditor_demo.py
  89. +2 −2 examples/demo/Standard_Editors/ListEditor_demo.py
  90. +2 −2 examples/demo/Standard_Editors/Popup_versions/BooleanEditor_demo.py
  91. +3 −3 examples/demo/Standard_Editors/Popup_versions/ButtonEditor_demo.py
  92. +2 −2 examples/demo/Standard_Editors/Popup_versions/CheckListEditor_demo.py
  93. +2 −2 examples/demo/Standard_Editors/Popup_versions/CodeEditor_demo.py
  94. +2 −2 examples/demo/Standard_Editors/Popup_versions/ColorEditor_demo.py
  95. +2 −2 examples/demo/Standard_Editors/Popup_versions/CompoundEditor_demo.py
  96. +2 −2 examples/demo/Standard_Editors/Popup_versions/DirectoryEditor_demo.py
  97. +2 −2 examples/demo/Standard_Editors/Popup_versions/EnumEditor_demo.py
  98. +2 −2 examples/demo/Standard_Editors/Popup_versions/FileEditor_demo.py
  99. +2 −2 examples/demo/Standard_Editors/Popup_versions/FontEditor_demo.py
  100. +2 −2 examples/demo/Standard_Editors/Popup_versions/ImageEnumEditor_demo.py
  101. +2 −2 examples/demo/Standard_Editors/Popup_versions/InstanceEditor_demo.py
  102. +2 −2 examples/demo/Standard_Editors/Popup_versions/ListEditor_demo.py
  103. +2 −2 examples/demo/Standard_Editors/Popup_versions/RangeEditor_demo.py
  104. +2 −2 examples/demo/Standard_Editors/Popup_versions/SetEditor_demo.py
  105. +4 −4 examples/demo/Standard_Editors/Popup_versions/TableEditor_demo.py
  106. +2 −2 examples/demo/Standard_Editors/Popup_versions/TextEditor_demo.py
  107. +2 −2 examples/demo/Standard_Editors/Popup_versions/TreeEditor_demo.py
  108. +2 −2 examples/demo/Standard_Editors/Popup_versions/TupleEditor_demo.py
  109. +2 −2 examples/demo/Standard_Editors/RGBColorEditor_demo.py
  110. +2 −2 examples/demo/Standard_Editors/RangeEditor_demo.py
  111. +2 −2 examples/demo/Standard_Editors/SetEditor_demo.py
  112. +4 −4 examples/demo/Standard_Editors/TableEditor_demo.py
  113. +2 −2 examples/demo/Standard_Editors/TextEditor_demo.py
  114. +2 −2 examples/demo/Standard_Editors/TitleEditor_demo.py
  115. +2 −2 examples/demo/Standard_Editors/TreeEditor_demo.py
  116. +2 −2 examples/demo/Standard_Editors/TupleEditor_demo.py
  117. +2 −2 examples/demo/Useful/using_springs.py
  118. +1 −1  examples/demo/demo.py
  119. +1 −1  examples/tutorials/doc_examples/examples/adapt_metadata.py
  120. +1 −1  examples/tutorials/doc_examples/examples/add_class_trait.py
  121. +2 −2 examples/tutorials/doc_examples/examples/all_traits_features.py
  122. +1 −1  examples/tutorials/doc_examples/examples/all_wildcard.py
  123. +3 −3 examples/tutorials/doc_examples/examples/array_editor.py
  124. +1 −1  examples/tutorials/doc_examples/examples/bad_self_ref.py
  125. +1 −1  examples/tutorials/doc_examples/examples/cached_prop.py
  126. +1 −1  examples/tutorials/doc_examples/examples/circular_definition.py
  127. +1 −1  examples/tutorials/doc_examples/examples/compound.py
  128. +2 −2 examples/tutorials/doc_examples/examples/configure_traits.py
  129. +3 −3 examples/tutorials/doc_examples/examples/configure_traits_view.py
  130. +3 −3 examples/tutorials/doc_examples/examples/configure_traits_view_buttons.py
  131. +3 −3 examples/tutorials/doc_examples/examples/configure_traits_view_group.py
  132. +1 −1  examples/tutorials/doc_examples/examples/custom_traithandler.py
  133. +2 −2 examples/tutorials/doc_examples/examples/default_trait_editors.py
  134. +3 −3 examples/tutorials/doc_examples/examples/default_traits_view.py
  135. +1 −1  examples/tutorials/doc_examples/examples/deferring_notification.py
  136. +3 −3 examples/tutorials/doc_examples/examples/delegate.py
  137. +1 −1  examples/tutorials/doc_examples/examples/disallow.py
  138. +1 −1  examples/tutorials/doc_examples/examples/dynamic_notification.py
  139. +2 −2 examples/tutorials/doc_examples/examples/enum_editor.py
  140. +1 −1  examples/tutorials/doc_examples/examples/event.py
  141. +1 −1  examples/tutorials/doc_examples/examples/external_adapter.py
  142. +2 −2 examples/tutorials/doc_examples/examples/handler_override.py
  143. +3 −3 examples/tutorials/doc_examples/examples/include_extra.py
  144. +2 −2 examples/tutorials/doc_examples/examples/instance_editor_selection.py
  145. +1 −1  examples/tutorials/doc_examples/examples/interface_definition.py
  146. +1 −1  examples/tutorials/doc_examples/examples/interface_implementation.py
  147. +3 −3 examples/tutorials/doc_examples/examples/key_bindings.py
  148. +1 −1  examples/tutorials/doc_examples/examples/keywords.py
  149. +1 −1  examples/tutorials/doc_examples/examples/list_notifier.py
  150. +1 −1  examples/tutorials/doc_examples/examples/mapped.py
  151. +2 −2 examples/tutorials/doc_examples/examples/metadata.py
  152. +1 −1  examples/tutorials/doc_examples/examples/minimal.py
  153. +2 −2 examples/tutorials/doc_examples/examples/mixed_styles.py
  154. +2 −2 examples/tutorials/doc_examples/examples/multi_object_view.py
  155. +3 −3 examples/tutorials/doc_examples/examples/multiple_views.py
  156. +1 −1  examples/tutorials/doc_examples/examples/object_trait_attrs.py
  157. +1 −1  examples/tutorials/doc_examples/examples/override_default.py
  158. +3 −3 examples/tutorials/doc_examples/examples/override_editor.py
  159. +1 −1  examples/tutorials/doc_examples/examples/prototype_prefix.py
  160. +1 −1  examples/tutorials/doc_examples/examples/scratch_adapter.py
  161. +1 −1  examples/tutorials/doc_examples/examples/simple_adapter.py
  162. +1 −1  examples/tutorials/doc_examples/examples/static_notification.py
  163. +1 −1  examples/tutorials/doc_examples/examples/temp_wildcard.py
  164. +1 −1  examples/tutorials/doc_examples/examples/this.py
  165. +1 −1  examples/tutorials/doc_examples/examples/trait_reuse.py
  166. +1 −1  examples/tutorials/doc_examples/examples/trait_subclass.py
  167. +1 −1  examples/tutorials/doc_examples/examples/traitprefixmap.py
  168. +1 −1  examples/tutorials/doc_examples/examples/transient_metadata.py
  169. +6 −6 examples/tutorials/doc_examples/examples/tree_editor.py
  170. +1 −1  examples/tutorials/doc_examples/examples/type_checked_methods.py
  171. +1 −1  examples/tutorials/doc_examples/examples/use_custom_th.py
  172. +3 −3 examples/tutorials/doc_examples/examples/view_attributes.py
  173. +3 −3 examples/tutorials/doc_examples/examples/view_multi_object.py
  174. +3 −3 examples/tutorials/doc_examples/examples/view_standalone.py
  175. +1 −1  examples/tutorials/doc_examples/examples/widget.py
  176. +1 −1  examples/tutorials/doc_examples/examples/wildcard.py
  177. +1 −1  examples/tutorials/doc_examples/examples/wildcard_all.py
  178. +1 −1  examples/tutorials/doc_examples/examples/wildcard_name.py
  179. +1 −1  examples/tutorials/doc_examples/examples/wildcard_rules.py
  180. +2 −2 examples/tutorials/doc_examples/examples/wizard.py
  181. +2 −2 examples/tutorials/traits_3.0/decorators/cached_property.py
  182. +1 −1  examples/tutorials/traits_3.0/decorators/on_trait_change.py
  183. +2 −2 examples/tutorials/traits_3.0/delegation/delegation.py
  184. +1 −1  examples/tutorials/traits_3.0/extended_trait_change/extended_trait_change.py
  185. +3 −3 examples/tutorials/traits_3.0/extended_trait_change/items.py
  186. +3 −3 examples/tutorials/traits_3.0/extended_trait_change/properties.py
  187. +1 −1  examples/tutorials/traits_3.0/getstate_setstate/getstate.py
  188. +3 −3 examples/tutorials/traits_3.0/interfaces/adaptation.py
  189. +5 −5 examples/tutorials/traits_3.0/interfaces/interfaces.py
  190. +1 −1  examples/tutorials/traits_3.0/trait_types/new_types.py
  191. +1 −1  examples/tutorials/traits_3.0/trait_types/trait_types.py
  192. +2 −2 examples/tutorials/traits_3.0/traits_ui/buttons.py
  193. +2 −2 examples/tutorials/traits_3.0/traits_ui/deferred.py
  194. +4 −4 examples/tutorials/traits_3.0/traits_ui/editors/animated_gif.py
  195. +4 −4 examples/tutorials/traits_3.0/traits_ui/editors/flash.py
  196. +4 −4 examples/tutorials/traits_3.0/traits_ui/editors/ie_html.py
  197. +4 −4 examples/tutorials/traits_3.0/traits_ui/editors/led.py
  198. +7 −7 examples/tutorials/traits_3.0/traits_ui/editors/tabular_editor/numpy_array.py
  199. +8 −8 examples/tutorials/traits_3.0/traits_ui/editors/tabular_editor/python_source_browser.py
  200. +8 −8 examples/tutorials/traits_3.0/traits_ui/editors/tabular_editor/sm_person_example.py
  201. +1 −1  examples/tutorials/traits_3.0/traits_ui/editors/tabular_editor/tabular_editor.rst
  202. +3 −3 examples/tutorials/traits_3.0/traits_ui/model_view.py
  203. +7 −7 examples/tutorials/tutor.py
  204. +1 −1  image_LICENSE.txt
  205. +2 −2 integrationtests/ui/array_editor_test.py
  206. +3 −3 integrationtests/ui/buttons_test.py
  207. +2 −2 integrationtests/ui/check_list_editor_test.py
  208. +2 −2 integrationtests/ui/check_list_editor_test2.py
  209. +4 −4 integrationtests/ui/code_editor_test.py
  210. +2 −2 integrationtests/ui/enum_dynamic_test.py
  211. +2 −2 integrationtests/ui/enum_editor_test.py
  212. +2 −2 integrationtests/ui/html_editor_test.py
  213. +5 −5 integrationtests/ui/instance_drag_test.py
  214. +3 −3 integrationtests/ui/instance_editor_test.py
  215. +3 −3 integrationtests/ui/instance_editor_test2.py
  216. +3 −3 integrationtests/ui/instance_editor_test3.py
  217. +3 −3 integrationtests/ui/instance_editor_test4.py
  218. +3 −3 integrationtests/ui/instance_editor_test5.py
  219. +3 −3 integrationtests/ui/instance_editor_test6.py
  220. +2 −2 integrationtests/ui/large_range_editor.py
  221. +5 −5 integrationtests/ui/list_traits_ui_test.py
  222. +5 −5 integrationtests/ui/numeric_editor_test.py
  223. +2 −2 integrationtests/ui/set_dynamic_test.py
  224. +4 −4 integrationtests/ui/shell_editor_test.py
  225. +4 −4 integrationtests/ui/table_editor_color_test.py
  226. +3 −3 integrationtests/ui/table_editor_focus_bug.py
  227. +5 −5 integrationtests/ui/table_editor_test.py
  228. +2 −2 integrationtests/ui/table_editor_test2.py
  229. +4 −4 integrationtests/ui/table_list_editor_test.py
  230. +2 −2 integrationtests/ui/test_ui.py
  231. +2 −2 integrationtests/ui/test_ui2.py
  232. +3 −3 integrationtests/ui/test_ui3.py
  233. +3 −3 integrationtests/ui/test_ui4.py
  234. +3 −3 integrationtests/ui/test_ui5.py
  235. +6 −6 integrationtests/ui/tree_editor_test.py
  236. +1 −1  traitsui/basic_editor_factory.py
  237. +1 −1  traitsui/context_value.py
  238. +2 −2 traitsui/delegating_handler.py
  239. +1 −1  traitsui/dock_window_theme.py
  240. +2 −2 traitsui/dockable_view_element.py
  241. +3 −3 traitsui/editor.py
  242. +1 −1  traitsui/editor_factory.py
  243. +1 −1  traitsui/editors/array_editor.py
  244. +1 −1  traitsui/editors/boolean_editor.py
  245. +1 −1  traitsui/editors/button_editor.py
  246. +1 −1  traitsui/editors/check_list_editor.py
  247. +2 −2 traitsui/editors/code_editor.py
  248. +4 −4 traitsui/editors/color_editor.py
  249. +1 −1  traitsui/editors/compound_editor.py
  250. +1 −1  traitsui/editors/custom_editor.py
  251. +1 −1  traitsui/editors/date_editor.py
  252. +1 −1  traitsui/editors/default_override.py
  253. +1 −1  traitsui/editors/drop_editor.py
  254. +1 −1  traitsui/editors/enum_editor.py
  255. +1 −1  traitsui/editors/file_editor.py
  256. +3 −3 traitsui/editors/font_editor.py
  257. +1 −1  traitsui/editors/history_editor.py
  258. +1 −1  traitsui/editors/html_editor.py
  259. +1 −1  traitsui/editors/image_editor.py
  260. +1 −1  traitsui/editors/image_enum_editor.py
  261. +1 −1  traitsui/editors/instance_editor.py
  262. +1 −1  traitsui/editors/list_editor.py
  263. +3 −3 traitsui/editors/list_str_editor.py
  264. +1 −1  traitsui/editors/popup_editor.py
  265. +1 −1  traitsui/editors/progress_editor.py
  266. +1 −1  traitsui/editors/range_editor.py
  267. +3 −3 traitsui/editors/rgb_color_editor.py
  268. +1 −1  traitsui/editors/scrubber_editor.py
  269. +1 −1  traitsui/editors/search_editor.py
  270. +1 −1  traitsui/editors/set_editor.py
  271. +2 −2 traitsui/editors/shell_editor.py
  272. +7 −7 traitsui/editors/table_editor.py
  273. +2 −2 traitsui/editors/tabular_editor.py
  274. +1 −1  traitsui/editors/tests/test_default_override.py
  275. +1 −1  traitsui/editors/text_editor.py
  276. +1 −1  traitsui/editors/time_editor.py
  277. +1 −1  traitsui/editors/tree_editor.py
  278. +2 −2 traitsui/editors/tuple_editor.py
  279. +1 −1  traitsui/editors/value_editor.py
  280. +1 −1  traitsui/editors_gen.py
  281. +2 −2 traitsui/extras/checkbox_column.py
  282. +5 −5 traitsui/extras/demo.py
  283. +2 −2 traitsui/extras/edit_column.py
  284. +3 −3 traitsui/extras/saving.py
  285. +5 −5 traitsui/file_dialog.py
  286. +2 −2 traitsui/group.py
  287. +5 −5 traitsui/handler.py
  288. +1 −1  traitsui/help_template.py
  289. +1 −1  traitsui/helper.py
  290. +11 −11 traitsui/image/image.py
  291. +1 −1  traitsui/image/library/image_LICENSE.txt
  292. +1 −1  traitsui/include.py
  293. +1 −1  traitsui/instance_choice.py
  294. +3 −3 traitsui/item.py
  295. +2 −2 traitsui/key_bindings.py
  296. +1 −1  traitsui/list_str_adapter.py
  297. +7 −7 traitsui/menu.py
  298. +2 −2 traitsui/message.py
  299. +1 −1  traitsui/null/color_trait.py
  300. +1 −1  traitsui/null/font_trait.py
Sorry, we could not display the entire diff because too many files (459) changed.
View
2  LICENSE.txt
@@ -27,7 +27,7 @@ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-The software contained in the enthought/traits/protocols/ directory is
+The software contained in the traits/protocols/ directory is
the pyprotocols project (http://peak.telecommunity.com/PyProtocols.html),
it is originaly licensed under the terms of the Python Software
Foundation License, which is compatible with the above terms.
View
2  TODO.txt
@@ -1,4 +1,4 @@
* Remove the dependency on AppTools project (caused by imports of
- enthought.resource in traits/ui/image.py.)
+ pyface.resource in traits/ui/image.py.)
View
2  docs/CHANGES.txt
@@ -58,7 +58,7 @@ The major enhancement this release is that the entire Traits package has been
changed to use relative imports so that it can be installed as a sub-package
inside another larger library or package. This was not previously possible,
since the various modules inside Traits would import each other directly
-through "enthought.traits.[module]". Many thanks to Darren Dale for the
+through "traits.[module]". Many thanks to Darren Dale for the
patch.
View
16 docs/source/TUIUG/advanced_view.rst
@@ -67,9 +67,9 @@ variation on Example 3:
# default_traits_view.py -- Sample code to demonstrate the use of
# 'traits_view'
- from enthought.traits.api import HasTraits, Str, Int
- from enthought.traits.ui.api import View, Item, Group
- import enthought.traits.ui
+ from traits.api import HasTraits, Str, Int
+ from traitsui.api import View, Item, Group
+ import traitsui
class SimpleEmployee2(HasTraits):
first_name = Str
@@ -127,9 +127,9 @@ this by simply adding a second View attribute:
# multiple_views.py -- Sample code to demonstrate the use of
# multiple views
- from enthought.traits.api import HasTraits, Str, Int
- from enthought.traits.ui.api import View, Item, Group
- import enthought.traits.ui
+ from traits.api import HasTraits, Str, Int
+ from traitsui.api import View, Item, Group
+ import traitsui
class SimpleEmployee3(HasTraits):
first_name = Str
@@ -342,8 +342,8 @@ example shows:
# multi_object_view.py -- Sample code to show multi-object view
# with context
- from enthought.traits.api import HasTraits, Str, Int, Bool
- from enthought.traits.ui.api import View, Group, Item
+ from traits.api import HasTraits, Str, Int, Bool
+ from traitsui.api import View, Group, Item
# Sample class
class House(HasTraits):
View
10 docs/source/TUIUG/custom_view.rst
@@ -159,9 +159,9 @@ Consider the following variation on Example 3:
# configure_traits_view_buttons.py -- Sample code to demonstrate
# configure_traits()
- from enthought.traits.api import HasTraits, Str, Int
- from enthought.traits.ui.api import View, Item
- from enthought.traits.ui.menu import OKButton, CancelButton
+ from traits.api import HasTraits, Str, Int
+ from traitsui.api import View, Item
+ from traitsui.menu import OKButton, CancelButton
class SimpleEmployee(HasTraits):
first_name = Str
@@ -213,7 +213,7 @@ names, or simply use their aliases:
+--------------+---------------------------+
Alternatively, there are several pre-defined button lists that can be imported
-from enthought.traits.ui.menu and assigned to the buttons attribute:
+from traitsui.menu and assigned to the buttons attribute:
.. index:: OKCancelsButtons, ModalButtons, LiveButtons
@@ -224,7 +224,7 @@ from enthought.traits.ui.menu and assigned to the buttons attribute:
Thus, one could rewrite the lines in Example 4 as follows, and the
effect would be exactly the same::
- from enthought.traits.ui.menu import OKCancelButtons
+ from traitsui.menu import OKCancelButtons
buttons = OKCancelButtons
View
32 docs/source/TUIUG/factories_advanced_extra.rst
@@ -106,7 +106,7 @@ KeyBindingEditor()
The KeyBindingEditor() factory differs from other trait editor factories because
it generates an editor, not for a single attribute, but for an object of a
-particular class, enthought.traits.ui.key_bindings.KeyBindings. A KeyBindings
+particular class, traitsui.key_bindings.KeyBindings. A KeyBindings
object is a list of bindings between key codes and handler methods. You can
specify a KeyBindings object as an attribute of a View. When the user presses a
key while a View has input focus, the user interface searches the View for a
@@ -137,11 +137,11 @@ with associated key bindings, and a button that invokes the key binding editor.
# key_bindings.py -- Example of a code editor with a
# key bindings editor
- from enthought.traits.api \
+ from traits.api \
import Button, Code, HasPrivateTraits, Str
- from enthought.traits.ui.api \
+ from traitsui.api \
import View, Item, Group, Handler, CodeEditor
- from enthought.traits.ui.key_bindings \
+ from traitsui.key_bindings \
import KeyBinding, KeyBindings
key_bindings = KeyBindings(
@@ -211,7 +211,7 @@ TableEditor()
*columns* or *columns_name*
:Optional parameters:
See *Traits API Reference*,
- enthought.traits.ui.wx.table_editor.ToolkitEditorFactory attributes.
+ traitsui.wx.table_editor.ToolkitEditorFactory attributes.
TableEditor() generates an editor that displays instances in a list as rows in a
table, with attributes of the instances as values in columns. You must specify
@@ -249,7 +249,7 @@ You can specify this list directly, as the value of the *columns* parameter, or
indirectly, in an extended context attribute referenced by the *columns_name*
parameter.
-The items in the list must be instances of enthought.traits.ui.api.TableColumn,
+The items in the list must be instances of traitsui.api.TableColumn,
or of a subclass of TableColumn. Some subclasses of TableColumn that are
provided by the Traits UI package include ObjectColumn, ListColumn,
NumericColumn, and ExpressionColumn. (See the *Traits API Reference* for details
@@ -339,7 +339,7 @@ You can provide an option for the user to apply a filter to a table, so that
only items that pass the filter are displayed. This feature can be very useful
when dealing with lengthy lists. You can specify a filter to apply to the table
either directly, or via another trait. Table filters must be instances of
-enthought.traits.ui.api.TableFilter, or of a subclass of TableFilter. Some
+traitsui.api.TableFilter, or of a subclass of TableFilter. Some
subclasses of TableFilter that are provided by the Traits UI package include
EvalTableFilter, RuleTableFilter, and MenuTableFilter. (See the *Traits API
Reference* for details about these classes.) The Traits UI package also provides
@@ -519,7 +519,7 @@ Defining the Format
The TableEditor() factory supports a variety of parameters to control the visual
formatting of the table, such as colors, fonts, and sizes for lines, cells, and
labels. For details, refer to the *Traits API Reference*,
-enthought.traits.ui.wx.table_editor.ToolkitEditorFactory attributes.
+traitsui.wx.table_editor.ToolkitEditorFactory attributes.
You can also specify formatting options for individual table columns when you
define them.
@@ -746,14 +746,14 @@ The following example shows the code that produces the editor shown in Figure
# tree_editor.py -- Example of a tree editor
- from enthought.traits.api \
+ from traits.api \
import HasTraits, Str, Regex, List, Instance
- from enthought.traits.ui.api \
+ from traitsui.api \
import TreeEditor, TreeNode, View, Item, VSplit, \
HGroup, Handler, Group
- from enthought.traits.ui.menu \
+ from traitsui.menu \
import Menu, Action, Separator
- from enthought.traits.ui.wx.tree_editor \
+ from traitsui.wx.tree_editor \
import NewAction, CopyAction, CutAction, \
PasteAction, DeleteAction, RenameAction
@@ -844,7 +844,7 @@ The following example shows the code that produces the editor shown in Figure
HGroup( '9', 'title' ),
HGroup( 'phone' ),
id = 'vsplit' ),
- id = 'enthought.traits.doc.example.treeeditor',
+ id = 'traits.doc.example.treeeditor',
dock = 'vertical' )
class TreeHandler ( Handler ):
@@ -925,7 +925,7 @@ The following example shows the code that produces the editor shown in Figure
show_left = True, ),
title = 'Company Structure',
id = \
- 'enthought.traits.ui.tests.tree_editor_test',
+ 'traitsui.tests.tree_editor_test',
dock = 'horizontal',
drop_class = HasTraits,
handler = TreeHandler(),
@@ -1225,7 +1225,7 @@ icon.
"Extra" Trait Editor Factories
------------------------------
-The enthought.traits.ui.wx package defines a few editor factories that are
+The traitsui.wx package defines a few editor factories that are
specific to the wxWidgets toolkit, some of which are also specific to the
Microsoft Windows platform. These editor factories are not necessarily
implemented for other GUI toolkits or other operating system platforms.
@@ -1341,7 +1341,7 @@ ImageEditor()
ImageEditor() generates a read-only display of an image. The image to be
displayed is determined by the *image* parameter, or by the value of the trait
attribute being edited, if *image* is not specified. In either case, the value
-must be a PyFace ImageResource (enthought.pyface.api.ImageResource), or a string
+must be a PyFace ImageResource (pyface.api.ImageResource), or a string
that can be converted to one. If *image* is specified, then the type and value
of the trait attribute being edited are irrelevant and are ignored.
View
18 docs/source/TUIUG/factories_basic.rst
@@ -64,10 +64,10 @@ The following code generates the editors shown in Figure 21.
# array_editor.py -- Example of using array editors
import numpy as np
- from enthought.traits.api import HasPrivateTraits, Array
- from enthought.traits.ui.api \
+ from traits.api import HasPrivateTraits, Array
+ from traitsui.api \
import View, ArrayEditor, Item
- from enthought.traits.ui.menu import NoButtons
+ from traitsui.menu import NoButtons
class ArrayEditorTest ( HasPrivateTraits ):
@@ -450,8 +450,8 @@ tags, and then strips out the tags.
::
# enum_editor.py -- Example of using an enumeration editor
- from enthought.traits.api import HasTraits, Enum
- from enthought.traits.ui.api import EnumEditor
+ from traits.api import HasTraits, Enum
+ from traitsui.api import EnumEditor
Class EnumExample(HasTraits):
priority = Enum('Medium', 'Highest',
@@ -693,7 +693,7 @@ rules to locate images to use:
a reference to a module. The editor searches for an images subdirectory
of the directory that contains the module.
#. If *path*, *klass*, and *module* are not defined, the editor searches
- for an images subdirectory of the enthought.traits.ui.wx package.
+ for an images subdirectory of the traitsui.wx package.
#. If none of the above paths are defined, the editor searches for an
:file:`images` directory that is a sibling of the directory from which
the application was run.
@@ -764,9 +764,9 @@ Example 16: Instance editor with instance selection
# instance_editor_selection.py -- Example of an instance editor
# with instance selection
- from enthought.traits.api \
+ from traits.api \
import HasStrictTraits, Int, Instance, List, Regex, Str
- from enthought.traits.ui.api \
+ from traitsui.api \
import View, Item, InstanceEditor
class Person ( HasStrictTraits ):
@@ -826,7 +826,7 @@ Allowing Instances
You can specify what types of instances can be edited in an instance editor,
using the *values* parameter. This parameter is a list of items describing the
type of selectable or editable instances. These items must be instances of
-subclasses of enthought.traits.ui.api.InstanceChoiceItem. If you want to
+subclasses of traitsui.api.InstanceChoiceItem. If you want to
generate new instances, put an InstanceFactoryChoice instance in the *values*
list that describes the instance to create. If you want certain types of
instances to be dropped on the editor, use an InstanceDropChoice instance in the
View
14 docs/source/TUIUG/factory_intro.rst
@@ -38,8 +38,8 @@ Consider the following script and the window it creates:
# default_trait_editors.py -- Example of using default
# trait editors
- from enthought.traits.api import HasTraits, Str, Range, Bool
- from enthought.traits.ui.api import View, Item
+ from traits.api import HasTraits, Str, Range, Bool
+ from traitsui.api import View, Item
class Adult(HasTraits):
first_name = Str
@@ -92,9 +92,9 @@ trait editor factories, which are described in
additional editor factories are specific to the wxWidgets toolkit and are
defined in one of the following packages:
-- enthought.traits.ui.wx
-- enthought.traits.ui.wx.extra
-- enthought.traits.ui.wx.extra.windows (specific to Microsoft Windows)
+- traitsui.wx
+- traitsui.wx.extra
+- traitsui.wx.extra.windows (specific to Microsoft Windows)
These editor factories are described in :ref:`extra-trait-editor-factories`.
@@ -334,8 +334,8 @@ example, consider the following script:
# mixed_styles.py -- Example of using editor styles at
# various levels
- from enthought.traits.api import HasTraits, Str, Enum
- from enthought.traits.ui.api import View, Group, Item
+ from traits.api import HasTraits, Str, Enum
+ from traitsui.api import View, Group, Item
class MixedStyles(HasTraits):
first_name = Str
View
6 docs/source/TUIUG/handler.rst
@@ -342,8 +342,8 @@ overridden setattr() method and user interface notification method.
# setattr(), and that has a user interface
# notification method
- from enthought.traits.api import HasTraits, Bool
- from enthought.traits.ui.api import View, Handler
+ from traits.api import HasTraits, Bool
+ from traitsui.api import View, Handler
class TC_Handler(Handler):
@@ -460,7 +460,7 @@ except that toolbars do not contain menus; they directly contain actions.
assumed to be in an images subdirectory of the directory where ImageResource
is used::
- From enthought.pyface.api import ImageResource
+ From pyface.api import ImageResource
recalc = Action(name = "Recalculate",
action = "do_recalc",
View
8 docs/source/TUIUG/intro.rst
@@ -104,11 +104,11 @@ code unless they need some capability of the toolkit that is not provided by
Traits UI. However, *some* particular toolkit must be installed on the system in
order to actually display GUI windows.
-Traits UI uses a separate package, enthought.etsconfig, to determine which GUI
+Traits UI uses a separate package, traits.etsconfig, to determine which GUI
toolkit to use. This package is also used by other Enthought packages that need
GUI capabilities, so that all such packages "agree" on a single GUI toolkit per
application. The etsconfig package contains a singleton object, **ETSConfig**
-(importable from `enthought.etsconfig.api`), which has a string attribute,
+(importable from `traits.etsconfig.api`), which has a string attribute,
**toolkit**, that signifies the GUI toolkit.
.. index:: ETSConfig.toolkit
@@ -135,9 +135,9 @@ order of precedence:
#. The program can explicitly set **ETSConfig.toolkit**. It must do this before
importing from any other Enthought Tool Suite component, including
- enthought.traits. For example, at the beginning of a program::
+ traits. For example, at the beginning of a program::
- from enthought.etsconfig.api import ETSConfig
+ from traits.etsconfig.api import ETSConfig
ETSConfig.toolkit = 'wx'
#. The user can specify a -toolkit flag on the command line of the program.
View
14 docs/source/TUIUG/themes.rst
@@ -101,8 +101,8 @@ unthemed user interface shown in Figure 8.
::
# unthemed.py -- Example of a Traits UI without themes
- from enthought.traits.api import HasTraits, Str, Range, Float, Enum
- from enthought.traits.ui.api import View, Group, Item, Label
+ from traits.api import HasTraits, Str, Range, Float, Enum
+ from traitsui.api import View, Group, Item, Label
class Test ( HasTraits ):
name = Str
@@ -133,9 +133,9 @@ essentially the same as in Example 10, but with theme data added.
::
# themed.py -- Example of a Traits UI with themes
- from enthought.traits.api import HasTraits, Str, Range, Float, Enum
- from enthought.traits.ui.api import View, Group, Item, Label
- from enthought.traits.ui.wx.themed_text_editor import \
+ from traits.api import HasTraits, Str, Range, Float, Enum
+ from traitsui.api import View, Group, Item, Label
+ from traitsui.wx.themed_text_editor import \
ThemedTextEditor
class Test ( HasTraits ):
@@ -190,6 +190,6 @@ This example uses the following theme-related items:
.. [13] This is very similar to the way that PyFace ImageResource objects work
when no search path is specified.
-.. [14] PyFace is provided by the enthought.pyface package in the Traits GUI
- project (not to be confused with the Traits UI package, enthought.traits.ui,
+.. [14] PyFace is provided by the pyface package in the Traits GUI
+ project (not to be confused with the Traits UI package, traitsui,
the subject of this document.)
View
16 docs/source/TUIUG/view.rst
@@ -23,8 +23,8 @@ object:
# configure_traits.py -- Sample code to demonstrate
# configure_traits()
- from enthought.traits.api import HasTraits, Str, Int
- import enthought.traits.ui
+ from traits.api import HasTraits, Str, Int
+ import traitsui
class SimpleEmployee(HasTraits):
first_name = Str
@@ -77,9 +77,9 @@ View object and passing it to the configure_traits() method:
# configure_traits_view.py -- Sample code to demonstrate
# configure_traits()
- from enthought.traits.api import HasTraits, Str, Int
- from enthought.traits.ui.api import View, Item
- import enthought.traits.ui
+ from traits.api import HasTraits, Str, Int
+ from traitsui.api import View, Item
+ import traitsui
class SimpleEmployee(HasTraits):
first_name = Str
@@ -280,9 +280,9 @@ Consider the following enhancement to Example 2:
# configure_traits_view_group.py -- Sample code to demonstrate
# configure_traits()
- from enthought.traits.api import HasTraits, Str, Int
- from enthought.traits.ui.api import View, Item, Group
- import enthought.traits.ui
+ from traits.api import HasTraits, Str, Int
+ from traitsui.api import View, Item, Group
+ import traitsui
class SimpleEmployee(HasTraits):
first_name = Str
View
50 docs/source/traits_user_manual/advanced.rst
@@ -64,7 +64,7 @@ completely re-specifying the trait definition for the attribute. For example::
# override_default.py -- Example of overriding a default value for
# a trait attribute in a subclass
- from enthought.traits.api import HasTraits, Range, Str
+ from traits.api import HasTraits, Range, Str
class Employee(HasTraits):
name = Str
@@ -91,7 +91,7 @@ a trait, and not the current value of a trait attribute, so it can be used in
the definition of any number of attributes. For example::
# trait_reuse.py --- Example of reusing trait definitions
- from enthought.traits.api import HasTraits, Range
+ from traits.api import HasTraits, Range
coefficient = Range(-1.0, 1.0, 0.0))
@@ -137,7 +137,7 @@ as a wildcard at the end of a trait attribute name. For example::
# temp_wildcard.py --- Example of using a wildcard with a Trait
# attribute name
- from enthought.traits.api import Any, HasTraits
+ from traits.api import Any, HasTraits
class Person(HasTraits):
temp_ = Any
@@ -153,7 +153,7 @@ You can even give all object attributes a default trait definition, by
specifying only the wildcard character for the attribute name::
# all_wildcard.py --- Example of trait attribute wildcard rules
- from enthought.traits.api import Any, HasTraits, Int, Str
+ from traits.api import Any, HasTraits, Int, Str
class Person ( HasTraits ):
@@ -209,7 +209,7 @@ standard Python language semantics.
These rules are demonstrated by the following example::
# wildcard_rules.py -- Example of trait attribute wildcard rules
- from enthought.traits.api import Any, HasTraits, Int, Python
+ from traits.api import Any, HasTraits, Int, Python
class Person(HasTraits):
temp_count = Int(-1)
@@ -234,7 +234,7 @@ The singleton object Disallow can be used with wildcards to disallow all
attributes that are not explicitly defined. For example::
# disallow.py --- Example of using Disallow with wildcards
- from enthought.traits.api import \
+ from traits.api import \
Disallow, Float, HasTraits, Int, Str
class Person (HasTraits):
@@ -343,7 +343,7 @@ add_trait() method of the HasTraits class:
For example::
# object_trait_attrs.py --- Example of per-object trait attributes
- from enthought.traits.api import HasTraits, Range
+ from traits.api import HasTraits, Range
class GUISlider (HasTraits):
@@ -398,7 +398,7 @@ example::
# type_checked_methods.py --- Example of traits-based method type
# checking
- from enthought.traits.api import HasTraits, method, Tuple
+ from traits.api import HasTraits, method, Tuple
Color = Tuple(int, int, int, int)
@@ -465,7 +465,7 @@ Defining an Interface
To define an interface, create a subclass of Interface::
# interface_definition.py -- Example of defining an interface
- from enthought.traits.api import Interface
+ from traits.api import Interface
class IName(Interface):
@@ -491,7 +491,7 @@ Implementing an Interface
A class declares that it implements one or more interfaces using the
implements() function, which has the signature:
-.. currentmodule:: enthought.traits.has_traits
+.. currentmodule:: traits.has_traits
.. function:: implements( interface[, interface2 , ... , interfaceN] )
.. index:: examples; interface implementation, interfaces; implementation; example
@@ -501,7 +501,7 @@ occur at class scope within the class definition. For example::
# interface_implementation.py -- Example of implementing an
# interface
- from enthought.traits.api import HasTraits, implements, Str
+ from traits.api import HasTraits, implements, Str
from interface_definition import IName
class Person(HasTraits):
@@ -529,10 +529,10 @@ values:
an InterfaceError if they don't.
The CHECK_INTERFACES variable must be imported directly from the
-enthought.traits.has_traits module::
+traits.has_traits module::
- import enthought.traits.has_traits
- enthought.traits.has_traits.CHECK_INTERFACES = 1
+ import traits.has_traits
+ traits.has_traits.CHECK_INTERFACES = 1
.. index:: interfaces; using, examples; interface usage
@@ -544,7 +544,7 @@ Using Interfaces
You can use an interface at any place where you would normally use a class name.
The most common way to use interfaces is with the Instance trait::
- >>> from enthought.traits.api import HasTraits, Instance
+ >>> from traits.api import HasTraits, Instance
>>> from interface_definition import IName
>>> class Apartment(HasTraits):
... renter = Instance(IName)
@@ -623,7 +623,7 @@ are:
The following code example shows a definition of a simple adapter class::
# simple_adapter.py -- Example of adaptation using Adapter
- from enthought.traits.api import Adapter, Instance, implements
+ from traits.api import Adapter, Instance, implements
from interface_definition import IName
from interface_implementation import Person
@@ -658,7 +658,7 @@ adapter class, and declares the set of interfaces that the class implements.
The signature of the adapts() function is:
-.. currentmodule:: enthought.traits.adapter
+.. currentmodule:: traits.adapter
.. function:: adapts( adaptee_class, interface[, interface2, ... , interfaceN])
This signature is very similar to that of implements(), but adds the class being
@@ -675,7 +675,7 @@ The following code shows an example of implementing an adapter without
subclassing Adapter::
# scratch_adapter.py -- Example of writing an adapter from scratch
- from enthought.traits.api import HasTraits, Instance, adapts
+ from traits.api import HasTraits, Instance, adapts
from interface_definition import IName
from interface_implementation import Person
@@ -723,7 +723,7 @@ The following code shows this use of the adapts() function::
# external_adapter.py -- Example of declaring a class as an
# adapter externally to the class
- from enthought.traits.api import adapts
+ from traits.api import adapts
from interface_definition import IName
from interface_implementation import Person
@@ -791,7 +791,7 @@ The following code is an example of an interface Instance trait attribute that
uses adapt metadata::
# adapt_metadata.py -- Example of using 'adapt' metadata
- from enthought.traits.api import HasTraits, Instance
+ from traits.api import HasTraits, Instance
from interface_definition import IName
class Apartment( HasTraits ):
@@ -821,7 +821,7 @@ Property Factory Function
The Property() function has the following signature:
-.. currentmodule:: enthought.traits.traits
+.. currentmodule:: traits.traits
.. function:: Property( [fget=None, fset=None, fvalidate=None, force=False, handler=None, trait=None, **metadata] )
All parameters are optional, including the *fget* "getter" and *fset* "setter"
@@ -877,7 +877,7 @@ indicate that a getter method's return value should be cached. Use
For example::
# cached_prop.py -- Example of @cached_property decorator
- from enthought.traits.api import HasPrivateTraits, List, Int,\
+ from traits.api import HasPrivateTraits, List, Int,\
Property, cached_property
class TestScores ( HasPrivateTraits ):
@@ -942,7 +942,7 @@ pickling behavior of the class.
For example::
# transient_metadata.py -- Example of using 'transient' metadata
- from enthought.traits.api import HasTraits, File, Any
+ from traits.api import HasTraits, File, Any
class DataBase ( HasTraits ):
# The name of the data base file:
@@ -1132,7 +1132,7 @@ This is illustrated in the following example::
# circular_definition.py --- Non-working example of mutually-
# referring classes
- from enthought.traits.api import HasTraits, Trait
+ from traits.api import HasTraits, Trait
class Chicken(HasTraits):
hatched_from = Trait(Egg)
@@ -1150,7 +1150,7 @@ following code::
# add_class_trait.py --- Example of mutually-referring classes
# using add_class_trait()
- from enthought.traits.api import HasTraits, Trait
+ from traits.api import HasTraits, Trait
class Chicken(HasTraits):
pass
View
26 docs/source/traits_user_manual/custom.rst
@@ -22,7 +22,7 @@ Trait Subclassing
-----------------
Starting with Traits version 3.0, most predefined traits are defined as
-subclasses of enthought.traits.trait_handlers.TraitType. As a result, you can
+subclasses of traits.trait_handlers.TraitType. As a result, you can
subclass one of these traits, or TraitType, to derive new traits. Refer to the
*Traits API Reference* to see whether a particular predefined trait derives from
TraitType.
@@ -33,7 +33,7 @@ TraitType.
Here's an example of subclassing a predefined trait class::
# trait_subclass.py -- Example of subclassing a trait class
- from enthought.traits.api import BaseInt
+ from traits.api import BaseInt
class OddInt ( BaseInt ):
@@ -193,7 +193,7 @@ Reference*.
The most general form of the Trait() function is:
-.. currentmodule:: enthought.traits.traits
+.. currentmodule:: traits.traits
.. function:: Trait(default_value, {type | constant_value | dictionary | class | function | trait_handler | trait }+ )
.. index:: compound traits
@@ -211,7 +211,7 @@ in the list.
The following is an example of a compound trait with multiple criteria::
# compound.py -- Example of multiple criteria in a trait definition
- from enthought.traits.api import HasTraits, Trait, Range
+ from traits.api import HasTraits, Trait, Range
class Die ( HasTraits ):
@@ -333,7 +333,7 @@ The following examples illustrates mapped traits that map color names to tuples
representing red, green, blue, and transparency values::
# mapped.py --- Example of a mapped trait
- from enthought.traits.api import HasTraits, Trait
+ from traits.api import HasTraits, Trait
standard_color = Trait ('black',
{'black': (0.0, 0.0, 0.0, 1.0),
@@ -410,7 +410,7 @@ trait handler, either a predefined one or a custom one that you write.
.. index:: TraitHandler class
A trait handler is an instance of the
-enthought.traits.trait_handlers.TraitHandler class, or of a subclass, whose
+traits.trait_handlers.TraitHandler class, or of a subclass, whose
task is to verify the correctness of values assigned to object traits. When a
value is assigned to an object trait that has a trait handler, the trait
handler's validate() method checks the value, and assigns that value or a
@@ -423,7 +423,7 @@ of the predefined trait handler classes are described in the following sections.
These sections also demonstrate how to define a trait using a trait handler and
the Trait() factory function. For a complete list and descriptions of predefined
TraitHandler subclasses, refer to the *Traits API Reference*, in the section on
-the enthought.traits.trait_handlers module.
+the traits.trait_handlers module.
.. index:: TraitPrefixList class
@@ -441,8 +441,8 @@ to the trait attribute is the full string that the substring matches.
For example::
- >>> from enthought.traits.api import HasTraits, Trait
- >>> from enthought.traits.api import TraitPrefixList
+ >>> from traits.api import HasTraits, Trait
+ >>> from traits.api import TraitPrefixList
>>> class Alien(HasTraits):
... heads = Trait('one', TraitPrefixList(['one','two','three']))
...
@@ -460,7 +460,7 @@ For example::
in validate self.error( object, name, value )
File "c:\svn\ets3\traits_3.0.3\enthought\traits\trait_handlers.py", line 175,
in error value )
- enthought.traits.trait_errors.TraitError: The 'heads' trait of an Alien instance
+ traits.trait_errors.TraitError: The 'heads' trait of an Alien instance
must be 'one' or 'two' or 'three' (or any unique prefix), but a value of 't'
<type 'str'> was specified.
@@ -484,7 +484,7 @@ any prefix of 'true', 'yes', 'false', or 'no', and maps them to 1 or 0.
::
# traitprefixmap.py --- Example of using the TraitPrefixMap handler
- from enthought.traits.api import Trait, TraitPrefixMap
+ from traits.api import Trait, TraitPrefixMap
boolean_map = Trait('true', TraitPrefixMap( {
'true': 1,
@@ -522,7 +522,7 @@ in :ref:`defining-a-trait-type`) using a TraitHandler subclass.
# custom_traithandler.py --- Example of a custom TraitHandler
import types
- from enthought.traits.api import TraitHandler
+ from traits.api import TraitHandler
class TraitOddInteger(TraitHandler):
def validate(self, object, name, value):
@@ -538,7 +538,7 @@ An application could use this new trait handler to define traits such as the
following::
# use_custom_th.py --- Example of using a custom TraitHandler
- from enthought.traits.api import HasTraits, Trait, TraitRange
+ from traits.api import HasTraits, Trait, TraitRange
from custom_traithandler import TraitOddInteger
class AnOddClass(HasTraits):
View
8 docs/source/traits_user_manual/deferring.rst
@@ -61,7 +61,7 @@ of the delegate object with the same name as the trait defined by the
DelegatesTo object. Consider the following example::
# delegate.py --- Example of trait delegation
- from enthought.traits.api \
+ from traits.api \
import DelegatesTo, HasTraits, Instance, Str
class Parent(HasTraits):
@@ -89,7 +89,7 @@ DelegatesTo object. Consider the following example::
File "c:\src\trunk\enthought\traits\trait_handlers.py", line
163, in error
raise TraitError, ( object, name, self.info(), value )
- enthought.traits.trait_errors.TraitError: The 'last_name' trait of a
+ traits.trait_errors.TraitError: The 'last_name' trait of a
Parent instance must be a string, but a value of <__main__.Parent object at
0x014D6D80> <class '__main__.Parent'> was specified.
"""
@@ -156,7 +156,7 @@ PrototypedFrom::
# prototype_prefix.py --- Examples of PrototypedFrom()
# prefix parameter
- from enthought.traits.api import \
+ from traits.api import \
PrototypedFrom, Float, HasTraits, Instance, Str
class Parent (HasTraits):
@@ -227,7 +227,7 @@ directly changed) were notified. This behavior is shown in the following
example::
# deferring_notification.py -- Example of notification with deferring
- from enthought.traits.api \
+ from traits.api \
import HasTraits, Instance, PrototypedFrom, Str
class Parent ( HasTraits ):
View
32 docs/source/traits_user_manual/defining.rst
@@ -8,9 +8,9 @@ Defining Traits: Initialization and Validation
Using the Traits package in a Python program involves the following steps:
-.. index:: importing Traits names, enthought.traits.api; importing from
+.. index:: importing Traits names, traits.api; importing from
-1. Import the names you need from the Traits package enthought.traits.api.
+1. Import the names you need from the Traits package traits.api.
2. Define the traits you want to use.
@@ -39,7 +39,7 @@ point values.
# minimal.py --- Minimal example of using traits.
- from enthought.traits.api import HasTraits, Float
+ from traits.api import HasTraits, Float
class Person(HasTraits):
weight = Float(150.0)
@@ -70,7 +70,7 @@ For example::
File "<stdin>", line 1, in <module>
File "c:\svn\ets3\traits\enthought\traits\trait_handlers.py", line 175,
in error value )
- enthought.traits.trait_errors.TraitError: The 'weight' trait of a Person
+ traits.trait_errors.TraitError: The 'weight' trait of a Person
instance must be a float, but a value of 'average' <type 'str'> was
specified.
@@ -212,7 +212,7 @@ Python built-in functions for type conversion:
The following example illustrates the difference between coercing traits and
casting traits::
- >>> from enthought.traits.api import HasTraits, Float, CFloat
+ >>> from traits.api import HasTraits, Float, CFloat
>>> class Person ( HasTraits ):
... weight = Float
... cweight = CFloat
@@ -225,7 +225,7 @@ casting traits::
File "<stdin>", line 1, in <module>
File "c:\svn\ets3\traits\enthought\traits\trait_handlers.py", line 175,
in error value )
- enthought.traits.trait_errors.TraitError: The 'weight' trait of a Person
+ traits.trait_errors.TraitError: The 'weight' trait of a Person
instance must be a float, but a value of '180' <type 'str'> was specified.
>>> bill.cweight = '180' # OK, cast to float('180')
>>> print bill.cweight
@@ -239,7 +239,7 @@ Other Predefined Traits
The Traits package provides a number of other predefined traits besides those
for simple types, corresponding to other commonly used data types; these
predefined traits are listed in the following table. Refer to the
-*Traits API Reference*, in the section for the module enthought.traits.traits,
+*Traits API Reference*, in the section for the module traits.traits,
for details. Most can be used either as simple names, which use their built-in
default values, or as callables, which can take additional arguments. If the
trait cannot be used as a simple name, it is omitted from the Name column of
@@ -390,7 +390,7 @@ the table.
+------------------+----------------------------------------------------------+
| UUID [3]_ | UUID( [\*\*\ *metadata*] ) |
+------------------+----------------------------------------------------------+
-| WeakRef | WeakRef( [*klass* = 'enthought.traits.HasTraits', |
+| WeakRef | WeakRef( [*klass* = 'traits.HasTraits', |
| | *allow_none* = False, *adapt* = 'yes', \*\*\ *metadata*])|
+------------------+----------------------------------------------------------+
@@ -412,7 +412,7 @@ The following is an example of using This::
# this.py --- Example of This predefined trait
- from enthought.traits.api import HasTraits, This
+ from traits.api import HasTraits, This
class Employee(HasTraits):
manager = This
@@ -423,7 +423,7 @@ be more intuitive to write the following::
# bad_self_ref.py --- Non-working example with self- referencing
# class definition
- from enthought.traits.api import HasTraits, Instance
+ from traits.api import HasTraits, Instance
class Employee(HasTraits):
manager = Instance(Employee)
@@ -435,7 +435,7 @@ Note that if a trait attribute is defined using This on one class and is
referenced on an instance of a subclass, the This trait verifies values based
on the class on which it was defined. For example::
- >>> from enthought.traits.api import HasTraits, This
+ >>> from traits.api import HasTraits, This
>>> class Employee(HasTraits):
... manager = This
...
@@ -471,7 +471,7 @@ the list of permitted values. The default value is the first value specified;
it is also a valid value for assignment.
::
- >>> from enthought.traits.api import Enum, HasTraits, Str
+ >>> from traits.api import Enum, HasTraits, Str
>>> class InventoryItem(HasTraits):
... name = Str # String value, default is ''
... stock = Enum(None, 0, 1, 2, 3, 'many')
@@ -492,7 +492,7 @@ it is also a valid value for assignment.
File "<stdin>", line 1, in <module>
File "c:\svn\ets3\traits_3.0.3\enthought\traits\trait_handlers.py", line 175,
in error value )
- enthought.traits.trait_errors.TraitError: The 'stock' trait of an InventoryItem
+ traits.trait_errors.TraitError: The 'stock' trait of an InventoryItem
instance must be None or 0 or 1 or 2 or 3 or 'many', but a value of 4 <type
'int'> was specified.
@@ -624,7 +624,7 @@ Accessing Metadata Attributes
Here is an example of setting trait metadata using keyword arguments::
# keywords.py --- Example of trait keywords
- from enthought.traits.api import HasTraits, Str
+ from traits.api import HasTraits, Str
class Person(HasTraits):
first_name = Str('',
@@ -647,7 +647,7 @@ on a HasTraits object to get a reference to a specific trait, and then access
the metadata attribute::
# metadata.py --- Example of accessing trait metadata attributes
- from enthought.traits.api import HasTraits, Int, List, Float, \
+ from traits.api import HasTraits, Int, List, Float, \
Instance, Any, TraitType
class Foo( HasTraits ): pass
@@ -669,7 +669,7 @@ the metadata attribute::
print t.trait( 'lf' ).default # []
print t.trait( 'lf' ).default_kind # list
print t.trait( 'lf' ).inner_traits
- # (<enthought.traits.traits.CTrait object at 0x01B24138>,)
+ # (<traits.traits.CTrait object at 0x01B24138>,)
print t.trait( 'lf' ).is_trait_type( List ) # True
print t.trait( 'lf' ).is_trait_type( TraitType ) # True
print t.trait( 'lf' ).is_trait_type( Float ) # False
View
6 docs/source/traits_user_manual/intro.rst
@@ -70,9 +70,9 @@ package. These features are elaborated in the rest of this guide.
# all_traits_features.py --- Shows primary features of the Traits
# package
- from enthought.traits.api import Delegate, HasTraits, Instance,\
+ from traits.api import Delegate, HasTraits, Instance,\
Int, Str
- import enthought.traits.ui
+ import traitsui
class Parent ( HasTraits ):
@@ -186,5 +186,5 @@ more work on the part of the programmer.
subdirectory of the Traits docs directory. You can run them
individually, or view them in a tutorial program by running:
- python <Traits dir>/enthought/traits/tutor/tutor.py <Traits dir>/docs/tutorials/doc_examples
+ python <Traits dir>/traits/tutor/tutor.py <Traits dir>/docs/tutorials/doc_examples
View
8 docs/source/traits_user_manual/notification.rst
@@ -71,7 +71,7 @@ Setting up a dynamic trait attribute change notification handler is illustrated
in the following example::
# dynamic_notification.py --- Example of dynamic notification
- from enthought.traits.api import Float, HasTraits, Instance
+ from traits.api import Float, HasTraits, Instance
class Part (HasTraits):
cost = Float(0.0)
@@ -350,7 +350,7 @@ some aspect of the extended trait name syntax in the name specifier.
# list_notifier.py -- Example of zero-parameter handlers for an object
# containing a list
- from enthought.traits.api import HasTraits, List
+ from traits.api import HasTraits, List
class Employee: pass
@@ -494,7 +494,7 @@ illustrated in the following example::
# static_notification.py --- Example of static attribute
# notification
- from enthought.traits.api import HasTraits, Float
+ from traits.api import HasTraits, Float
class Person(HasTraits):
weight_kg = Float(0.0)
@@ -627,7 +627,7 @@ There are two major differences between a normal trait and an event:
As an example of an event, consider::
# event.py --- Example of trait event
- from enthought.traits.api import Event, HasTraits, List, Tuple
+ from traits.api import Event, HasTraits, List, Tuple
point_2d = Tuple(0, 0)
View
4 docs/source/tutorials/code_snippets/code_block1.py
@@ -1,5 +1,5 @@
-from enthought.traits.api import *
-from enthought.traits.ui.api import *
+from traits.api import *
+from traitsui.api import *
class Camera( HasTraits ):
""" Camera object """
View
4 docs/source/tutorials/code_snippets/container.py
@@ -1,5 +1,5 @@
-from enthought.traits.api import *
-from enthought.traits.ui.api import *
+from traits.api import *
+from traitsui.api import *
class Camera(HasTraits):
""" Camera object """
View
2  docs/source/tutorials/code_snippets/echo_box.py
@@ -1,4 +1,4 @@
-from enthought.traits.api import *
+from traits.api import *
class EchoBox(HasTraits):
input = Str()
View
2  docs/source/tutorials/code_snippets/event_loop.py
@@ -1,4 +1,4 @@
-from enthought.traits.api import *
+from traits.api import *
import wx
class Counter(HasTraits):
View
6 docs/source/tutorials/code_snippets/interactive.py
@@ -1,6 +1,6 @@
-from enthought.traits import *
-from enthought.pyface.api import GUI
-from enthought.traits.ui import View, Item, ButtonEditor
+from traits import *
+from pyface.api import GUI
+from traitsui import View, Item, ButtonEditor
class Counter(HasTraits):
value = Int()
View
10 docs/source/tutorials/code_snippets/mpl_figure_editor.py
@@ -8,9 +8,9 @@
from matplotlib.figure import Figure
from matplotlib.backends.backend_wx import NavigationToolbar2Wx
-from enthought.traits.api import Any, Instance
-from enthought.traits.ui.wx.editor import Editor
-from enthought.traits.ui.wx.basic_editor_factory import BasicEditorFactory
+from traits.api import Any, Instance
+from traitsui.wx.editor import Editor
+from traitsui.wx.basic_editor_factory import BasicEditorFactory
class _MPLFigureEditor(Editor):
@@ -44,8 +44,8 @@ class MPLFigureEditor(BasicEditorFactory):
if __name__ == "__main__":
# Create a window to demo the editor
- from enthought.traits.api import HasTraits
- from enthought.traits.ui.api import View, Item
+ from traits.api import HasTraits
+ from traitsui.api import View, Item
from numpy import sin, cos, linspace, pi
class Test(HasTraits):
View
4 docs/source/tutorials/code_snippets/traits_thread.py
@@ -1,7 +1,7 @@
from threading import Thread
from time import sleep
-from enthought.traits.api import *
-from enthought.traits.ui.api import View, Item, ButtonEditor
+from traits.api import *
+from traitsui.api import View, Item, ButtonEditor
class TextDisplay(HasTraits):
string = String()
View
36 docs/source/tutorials/traits_ui_scientific_app.rst
@@ -224,8 +224,8 @@ to open a dialog to edit its properties :
.. code-block:: python
- from enthought.traits.api import *
- from enthought.traits.ui.api import *
+ from traits.api import *
+ from traitsui.api import *
class Camera(HasTraits):
""" Camera object """
@@ -282,8 +282,8 @@ like (see the TraitsUI manual):
.. code-block:: python
- from enthought.traits.api import *
- from enthought.traits.ui.api import *
+ from traits.api import *
+ from traitsui.api import *
class Camera(HasTraits):
gain = Enum(1, 2, 3, )
@@ -384,7 +384,7 @@ loop in wx speech).
.. code-block:: python
- from enthought.traits.api import *
+ from traits.api import *
import wx
class Counter(HasTraits):
@@ -429,7 +429,7 @@ duplicated to output.
.. code-block:: python
- from enthought.traits.api import *
+ from traits.api import *
class EchoBox(HasTraits):
input = Str()
@@ -451,8 +451,8 @@ button:
.. code-block:: python
- from enthought.traits.api import *
- from enthought.traits.ui.api import View, Item, ButtonEditor
+ from traits.api import *
+ from traitsui.api import View, Item, ButtonEditor
class Counter(HasTraits):
value = Int()
@@ -592,8 +592,8 @@ modification to traits objects by hand in the event loop:
from threading import Thread
from time import sleep
- from enthought.traits.api import *
- from enthought.traits.ui.api import View, Item, ButtonEditor
+ from traits.api import *
+ from traitsui.api import View, Item, ButtonEditor
class TextDisplay(HasTraits):
string = String()
@@ -734,9 +734,9 @@ displaying and positioning the editor.
from matplotlib.figure import Figure
from matplotlib.backends.backend_wx import NavigationToolbar2Wx
- from enthought.traits.api import Any, Instance
- from enthought.traits.ui.wx.editor import Editor
- from enthought.traits.ui.wx.basic_editor_factory import BasicEditorFactory
+ from traits.api import Any, Instance
+ from traitsui.wx.editor import Editor
+ from traitsui.wx.basic_editor_factory import BasicEditorFactory
class _MPLFigureEditor(Editor):
@@ -770,8 +770,8 @@ displaying and positioning the editor.
if __name__ == "__main__":
# Create a window to demo the editor
- from enthought.traits.api import HasTraits
- from enthought.traits.ui.api import View, Item
+ from traits.api import HasTraits
+ from traitsui.api import View, Item
from numpy import sin, cos, linspace, pi
class Test(HasTraits):
@@ -842,9 +842,9 @@ The MPLFigureEditor is imported from the last example.
from threading import Thread
from time import sleep
- from enthought.traits.api import *
- from enthought.traits.ui.api import View, Item, Group, HSplit, Handler
- from enthought.traits.ui.menu import NoButtons
+ from traits.api import *
+ from traitsui.api import View, Item, Group, HSplit, Handler
+ from traitsui.menu import NoButtons
from mpl_figure_editor import MPLFigureEditor
from matplotlib.figure import Figure
from scipy import * import wx
View
4 examples/demo/Advanced/Adapted_tree_editor_demo.py
@@ -31,10 +31,10 @@
from os \
import getcwd
-from enthought.traits.api \
+from traits.api \
import HasTraits, Property, Directory, adapts, property_depends_on
-from enthought.traits.ui.api \
+from traitsui.api \
import View, VGroup, Item, TreeEditor, ITreeNode, ITreeNodeAdapter
from enthought.io.api \
View
4 examples/demo/Advanced/Apply_Revert_handler_demo.py
@@ -7,10 +7,10 @@
"""
# Imports:
-from enthought.traits.api \
+from traits.api \
import HasTraits, Str, List
-from enthought.traits.ui.api \
+from traitsui.api \
import Item, View, Handler, HGroup, VGroup
# 'ApplyRevert_Handler' class:
View
8 examples/demo/Advanced/Auto_editable_readonly_table_cells.py
@@ -27,13 +27,13 @@
#-- Imports --------------------------------------------------------------------
-from enthought.traits.api \
+from traits.api \
import HasTraits, Int, List, Range, Property, property_depends_on
-from enthought.traits.ui.api \
+from traitsui.api \
import View, VGroup, Item, TableEditor
-from enthought.traits.ui.table_column \
+from traitsui.table_column \
import ObjectColumn
#-- Integer Class --------------------------------------------------------------
@@ -94,7 +94,7 @@ def _get_factors ( self ):
show_label = False,
editor = factor_table_editor
),
- id = 'enthought.traits.examples.demo.Advanced.factors_view',
+ id = 'traits.examples.demo.Advanced.factors_view',
kind = 'info',
height = 0.30,
)
View
6 examples/demo/Advanced/Auto_update_TabularEditor_demo.py
@@ -16,13 +16,13 @@
#-- Imports --------------------------------------------------------------------
-from enthought.traits.api \
+from traits.api \
import HasTraits, Str, Float, List, Instance, Button
-from enthought.traits.ui.api \
+from traitsui.api \
import View, HGroup, Item, TabularEditor, spring
-from enthought.traits.ui.tabular_adapter \
+from traitsui.tabular_adapter \
import TabularAdapter
#-- EmployeeAdapter Class ------------------------------------------------------
View
4 examples/demo/Advanced/Date_editor_demo.py
@@ -5,8 +5,8 @@
A Traits UI editor that wraps a WX calendar panel.
"""
-from enthought.traits.api import HasTraits, Date, List, Str, on_trait_change
-from enthought.traits.ui.api import View, Item, DateEditor, Group
+from traits.api import HasTraits, Date, List, Str, on_trait_change
+from traitsui.api import View, Item, DateEditor, Group
class DateEditorDemo(HasTraits):
View
4 examples/demo/Advanced/Dynamic_EnumEditor_demo.py
@@ -39,10 +39,10 @@
#-- Imports --------------------------------------------------------------------
-from enthought.traits.api \
+from traits.api \
import HasPrivateTraits, Str, List, Constant
-from enthought.traits.ui.api \
+from traitsui.api \
import View, Item, VGroup, HSplit, EnumEditor, CheckListEditor
#-- The list of possible entrees -----------------------------------------------
View
4 examples/demo/Advanced/Dynamic_range_trait_and_editor.py
@@ -59,11 +59,11 @@
from random \
import choice
-from enthought.traits.api \
+from traits.api \
import HasPrivateTraits, Str, Enum, Range, List, Button, Instance, \
Property, cached_property, on_trait_change
-from enthought.traits.ui.api \
+from traitsui.api \
import View, VGroup, HGroup, Item, ListEditor, spring
#-- The Hotel class ------------------------------------------------------------
View
8 examples/demo/Advanced/Dynamic_views_demo.py
@@ -4,13 +4,13 @@
""" Demonstrates how to use the Dynamic Views facility.
"""
-from enthought.traits.api \
+from traits.api \
import Bool, HasTraits, Str, Instance, Button
-from enthought.traits.ui.api \
+from traitsui.api \
import View, HGroup, Group, Item, Handler, Label, spring
-from enthought.traits.has_dynamic_views \
+from traits.has_dynamic_views \
import DynamicView, HasDynamicViews
class HasFooView ( HasDynamicViews ):
@@ -27,7 +27,7 @@ def __init__ ( self, *args, **traits ):
# Declare and add our dynamic view:
declaration = DynamicView(
name = 'foo',
- id = 'enthought.traits.ui.demos.dynamic_views',
+ id = 'traitsui.demos.dynamic_views',
keywords = {
'buttons': [ 'OK' ],
'dock': 'tab',
View
8 examples/demo/Advanced/HDF5_tree_demo.py
@@ -7,9 +7,9 @@
at the bottom of this file.
"""
-from enthought.traits.api import HasTraits, Str, List, Instance
-from enthought.traits.ui.api import TreeEditor, TreeNode, View, Item, VSplit, HGroup, Handler, Group
-from enthought.traits.ui.menu import Menu, Action, Separator
+from traits.api import HasTraits, Str, List, Instance
+from traitsui.api import TreeEditor, TreeNode, View, Item, VSplit, HGroup, Handler, Group
+from traitsui.menu import Menu, Action, Separator
import tables as tb
@@ -135,7 +135,7 @@ def _hdf5_tree_editor(selected=''):
if __name__ == '__main__':
- from enthought.traits.api import Any
+ from traits.api import Any
class ATree(HasTraits):
h5_tree = Instance(Hdf5FileNode)
View
4 examples/demo/Advanced/History_demo.py
@@ -23,10 +23,10 @@
#-- Imports --------------------------------------------------------------------
-from enthought.traits.api \
+from traits.api \
import HasTraits, Str, File, Directory
-from enthought.traits.ui.api \
+from traitsui.api \
import View, Item, FileEditor, DirectoryEditor, HistoryEditor
#-- HistoryDemo Class ----------------------------------------------------------
View
4 examples/demo/Advanced/Invalid_state_handling.py
@@ -59,10 +59,10 @@
#-- Imports --------------------------------------------------------------------
-from enthought.traits.api \
+from traits.api \
import HasTraits, Range, Float, Bool, Str, Property, property_depends_on
-from enthought.traits.ui.api \
+from traitsui.api \
import View, VGroup, Item
#-- System Class ---------------------------------------------------------------
View
4 examples/demo/Advanced/ListStrEditor_demo.py
@@ -9,10 +9,10 @@
#-- Imports --------------------------------------------------------------------
-from enthought.traits.api \
+from traits.api \
import HasTraits, List, Str
-from enthought.traits.ui.api \
+from traitsui.api \
import View, Item, ListStrEditor
#-- ShoppingListDemo Class -----------------------------------------------------
View
6 examples/demo/Advanced/List_editor_notebook_selection_demo.py
@@ -20,10 +20,10 @@
#-- Imports --------------------------------------------------------------------
-from enthought.traits.api \
+from traits.api \
import HasStrictTraits, Str, Int, Regex, List, Instance, Range
-from enthought.traits.ui.api \
+from traitsui.api \
import View, VGroup, Item, ListEditor
#-- Person Class ---------------------------------------------------------------
@@ -84,7 +84,7 @@ class ListEditorNotebookSelectionDemo ( HasStrictTraits ):
page_name = '.name' )
)
),
- id = 'enthought.traits.ui.demo.Traits UI Demo.Advanced.'
+ id = 'traitsui.demo.Traits UI Demo.Advanced.'
'List_editor_notebook_selection_demo',
dock = 'horizontal' )
View
10 examples/demo/Advanced/List_editors_demo.py
@@ -14,16 +14,16 @@
"""
# Imports:
-from enthought.traits.api \
+from traits.api \
import HasStrictTraits, Str, Int, Regex, List, Instance
-from enthought.traits.ui.api \
+from traitsui.api \
import View, Item, Tabbed, TableEditor, ListEditor
-from enthought.traits.ui.table_column \
+from traitsui.table_column \
import ObjectColumn
-from enthought.traits.ui.table_filter \
+from traitsui.table_filter \
import RuleTableFilter, RuleFilterTemplate, \
MenuFilterTemplate, EvalFilterTemplate
@@ -96,7 +96,7 @@ class ListTraitTest ( HasStrictTraits ):
page_name = '.name' ) ),
id = 'splitter',
show_labels = False ),
- id = 'enthought.traits.ui.demo.Traits UI Demo.Advanced.List_editors_demo',
+ id = 'traitsui.demo.Traits UI Demo.Advanced.List_editors_demo',
dock = 'horizontal' )
# Create the demo:
View
4 examples/demo/Advanced/MVC_demo.py
@@ -7,10 +7,10 @@
"""
# Imports:
-from enthought.traits.api \
+from traits.api \
import HasTraits, Str, Bool, TraitError
-from enthought.traits.ui.api \
+from traitsui.api \
import View, VGroup, HGroup, Item, Controller
class MyModel ( HasTraits ):
View
6 examples/demo/Advanced/Multi_select_string_list.py
@@ -5,13 +5,13 @@
A demo showing how to use a TabularEditor to create a multi-select list box.