mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
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.
This commit is contained in:
@@ -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:
|
The _type_ selector matches the name of the (Python) class. For example, the following widget can be matched with a `Button` selector:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from textual.widgets import Widget
|
from textual.widgets import Static
|
||||||
|
|
||||||
class Button(Static):
|
class Button(Static):
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user