From 93e403c8dc7d5738aaf94e3f7231dfb937a19391 Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Thu, 13 Oct 2022 14:11:12 +0100 Subject: [PATCH] Mark mention of Widget as a class as code --- docs/tutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial.md b/docs/tutorial.md index e73088655..0324a4ed0 100644 --- a/docs/tutorial.md +++ b/docs/tutorial.md @@ -157,7 +157,7 @@ Let's add those to the app. Just a skeleton for now, we will add the rest of the --8<-- "docs/examples/tutorial/stopwatch02.py" ``` -We've imported two new widgets in this code: `Button`, which creates a clickable button, and `Static` which is a base class for a simple control. We've also imported `Container` from `textual.containers` which (as the name suggests) is a Widget which contains other widgets. +We've imported two new widgets in this code: `Button`, which creates a clickable button, and `Static` which is a base class for a simple control. We've also imported `Container` from `textual.containers` which (as the name suggests) is a `Widget` which contains other widgets. We've defined an empty `TimeDisplay` widget by extending `Static`. We will flesh this out later.