From 0640c834f768e96277081a8e5b03ea4ddb66635f Mon Sep 17 00:00:00 2001 From: Aaron Ayres Date: Thu, 8 Apr 2021 07:04:48 -0500 Subject: [PATCH] dont import traitsui api as tui --- chaco/plugin/plot_editor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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, )