diff --git a/chaco/plugin/plot_editor.py b/chaco/plugin/plot_editor.py index 727ab2030..71c3836c0 100644 --- a/chaco/plugin/plot_editor.py +++ b/chaco/plugin/plot_editor.py @@ -2,7 +2,7 @@ from enable.component_editor import ComponentEditor from pyface.workbench.api import TraitsUIEditor from traits.api import Any, Enum, HasTraits, Property, Str -from traitsui import api as tui +from traitsui.api import Item, View class PlotUI(HasTraits): @@ -11,8 +11,8 @@ class PlotUI(HasTraits): # The plot. component = Any() - traits_view = tui.View( - tui.Item("component", editor=ComponentEditor(), show_label=False), + traits_view = View( + Item("component", editor=ComponentEditor(), show_label=False), resizable=True, )