Skip to content

Commit 93d99d9

Browse files
committed
Updated comment.
1 parent 447ee75 commit 93d99d9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

cmd2/theme.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,10 @@ def _create_default_theme() -> Theme:
151151

152152

153153
def register_pt_mapping(style_name: str, pt_ui_names: str | list[str]) -> None:
154-
"""Map a style name to one or more prompt-toolkit UI components.
154+
"""Map a Rich theme style name to one or more prompt-toolkit UI components.
155155
156-
This allows plugins and applications to define their own themeable UI elements.
156+
This enables styling of prompt-toolkit's internal elements (such as the
157+
completion menu ) using styles in the application's Rich theme.
157158
158159
:param style_name: The style name used in the Rich theme.
159160
:param pt_ui_names: One or more prompt-toolkit UI component names (e.g., 'completion-menu').

0 commit comments

Comments
 (0)