Correct the example Python code for the border style (#1956)

To the best of my knowledge, and in testing myself, border and border_* are
properties of a widget's `styles` property, they're not a property of the
widget itself.
This commit is contained in:
Dave Pearson
2023-03-07 09:28:02 +00:00
committed by GitHub
parent 864931e94b
commit fcc16c0e59

View File

@@ -134,10 +134,10 @@ border-left: outer red;
```python
# Set a heavy white border
widget.border = ("heavy", "white")
widget.styles.border = ("heavy", "white")
# Set a red border on the left
widget.border_left = ("outer", "red")
widget.styles.border_left = ("outer", "red")
```
## See also