diff --git a/docs/user/widgets/text_box/text_box.md b/docs/user/widgets/text_box/text_box.md index 083c8087..0612b0e0 100644 --- a/docs/user/widgets/text_box/text_box.md +++ b/docs/user/widgets/text_box/text_box.md @@ -29,16 +29,16 @@ In this example, we demonstrate how to add a `TextBox` widget to a `BECDockArea` text_box = gui.add_dock().add_widget("TextBox") # Set the text to display -text_box.set_text("Hello, World!") +text_box.set_plain_text("Hello, World!") ``` ## Example 2 - Displaying HTML Content -The `TextBox` widget can automatically detect and render HTML content. This example shows how to display formatted HTML text. +The `TextBox` widget can also render HTML content. This example shows how to display formatted HTML text. ```python # Set the text to display as HTML -text_box.set_text("

Welcome to BEC Widgets

This is an example of displaying HTML text.

") +text_box.set_html_text("

Welcome to BEC Widgets

This is an example of displaying HTML text.

") ``` ````