MCPcopy
hub / github.com/Textualize/rich / Clock

Class Clock

examples/layout.py:41–45  ·  view source on GitHub ↗

Renders the time in the center of the screen.

Source from the content-addressed store, hash-verified

39
40
41class Clock:
42 """Renders the time in the center of the screen."""
43
44 def __rich__(self) -> Text:
45 return Text(datetime.now().ctime(), style="bold magenta", justify="center")
46
47
48layout["header"].update(Clock())

Callers 1

layout.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected