Skip to content

Commit 5f04770

Browse files
committed
Use UItem instead of Item(show_label=False)
1 parent 09da516 commit 5f04770

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

stage3.0_first_views/traited_face_detect.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
List,
1919
observe,
2020
)
21-
from traitsui.api import Item, ModelView, View
21+
from traitsui.api import ModelView, UItem, View
2222

2323
# Local imports
2424
from ets_tutorial.util.mpl_figure_editor import MplFigureEditor
@@ -84,8 +84,8 @@ class ImageFileView(ModelView):
8484
figure = Instance(Figure)
8585

8686
view = View(
87-
Item("model.filepath", show_label=False),
88-
Item("figure", editor=MplFigureEditor(), show_label=False),
87+
UItem("model.filepath"),
88+
UItem("figure", editor=MplFigureEditor()),
8989
resizable=True,
9090
title="Pycasa"
9191
)

0 commit comments

Comments
 (0)