Skip to content

Commit 88ba725

Browse files
committed
Explain selected_index traitlet
1 parent 59fcdb4 commit 88ba725

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ipywidgets/widgets/widget_selectioncontainer.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ class _SelectionContainer(Box, CoreWidget):
1717
"""Base class used to display multiple child widgets."""
1818
_titles = Dict(help="Titles of the pages").tag(sync=True)
1919
selected_index = CInt(
20-
help="The index of the selected page.", allow_none=True
20+
help="""The index of the selected page.
21+
22+
This is either an integer selecting a particular sub-widget,
23+
or None to to have no widgets selected.""",
24+
allow_none=True
2125
).tag(sync=True)
2226

2327
@validate('selected_index')

0 commit comments

Comments
 (0)