File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -321,11 +321,19 @@ class Label:
321
321
"""
322
322
Widget that displays the given text. It is not editable or focusable.
323
323
324
- :param text: The text to be displayed. (This can be multiline. This can be
325
- formatted text as well.)
324
+ :param text: Text to display. Can be multiline. All value types accepted by
325
+ :class:`prompt_toolkit.layout.FormattedTextControl` are allowed,
326
+ including a callable.
326
327
:param style: A style string.
327
328
:param width: When given, use this width, rather than calculating it from
328
329
the text size.
330
+ :param dont_extend_width: When `True`, don't take up more width than
331
+ preferred, i.e. the length of the longest line of
332
+ the text, or value of `width` parameter, if
333
+ given. `True` by default
334
+ :param dont_extend_height: When `True`, don't take up more width than the
335
+ preferred height, i.e. the number of lines of
336
+ the text. `False` by default.
329
337
"""
330
338
331
339
def __init__ (
You can’t perform that action at this time.
0 commit comments