From fcc16c0e59e39d394778dd00865f073adb8592bf Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Tue, 7 Mar 2023 09:28:02 +0000 Subject: [PATCH] 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. --- docs/styles/border.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/styles/border.md b/docs/styles/border.md index fd6f117dd..2e370fc16 100644 --- a/docs/styles/border.md +++ b/docs/styles/border.md @@ -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