From 4f0693cae34b391d75884837e1ae6353a0501868 Mon Sep 17 00:00:00 2001 From: appel_c Date: Thu, 7 Nov 2024 12:49:36 +0100 Subject: [PATCH] docs: update outdated text in docs --- docs/user/widgets/text_box/text_box.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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.

") ``` ````