From 34e5d53cb3b66314a555917aa102be395d5740f7 Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Fri, 14 Oct 2022 08:48:06 +0100 Subject: [PATCH] Correct what is imported in an example The main code in the example creates a `Button` from a `Static`, but the import is importing a `Widget`. This commit makes the example code make more sense. --- docs/guide/CSS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/CSS.md b/docs/guide/CSS.md index 49508cc48..b1b2c9f92 100644 --- a/docs/guide/CSS.md +++ b/docs/guide/CSS.md @@ -187,7 +187,7 @@ Let's look at the selectors supported by Textual CSS. The _type_ selector matches the name of the (Python) class. For example, the following widget can be matched with a `Button` selector: ```python -from textual.widgets import Widget +from textual.widgets import Static class Button(Static): pass