From fa61ca0f641aa87eeab0d6ea0a12e1ac12a44e2f Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Fri, 5 Aug 2022 09:16:37 +0100 Subject: [PATCH] Update docs/introduction.md Co-authored-by: darrenburns --- docs/introduction.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/introduction.md b/docs/introduction.md index 0f124b842..a180d74e7 100644 --- a/docs/introduction.md +++ b/docs/introduction.md @@ -130,7 +130,7 @@ This script imports App as before, but also the `Widget` class from `textual.wid Widgets support many of the same events as the Application itself, and can be thought of as mini-applications in their own right. The Clock widget responds to a Mount event which is the first event received when a widget is _mounted_ (added to the App). The code in `Clock.on_mount` sets `styles.content_align` to tuple of `("center", "middle")` which tells Textual to display the Widget's content aligned to the horizontal center, and in the middle vertically. If you resize the terminal, you should find the time remains in the center. -The second line in `on_mount` calls `self.set_interval` which tells Textual to invoke the `self.refresh` method once a second. +The second line in `on_mount` calls `self.set_interval` which tells Textual to invoke the `self.refresh` method once per second. When Textual refreshes a widget it calls it's `render` method: