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

Function make_sponsor_message

examples/fullscreen.py:37–69  ·  view source on GitHub ↗

Some example content.

()

Source from the content-addressed store, hash-verified

35
36
37def make_sponsor_message() -> Panel:
38 """Some example content."""
39 sponsor_message = Table.grid(padding=1)
40 sponsor_message.add_column(style="green", justify="right")
41 sponsor_message.add_column(no_wrap=True)
42 sponsor_message.add_row(
43 "Twitter",
44 "[u blue link=https://twitter.com/textualize]https://twitter.com/textualize",
45 )
46 sponsor_message.add_row(
47 "CEO",
48 "[u blue link=https://twitter.com/willmcgugan]https://twitter.com/willmcgugan",
49 )
50 sponsor_message.add_row(
51 "Textualize", "[u blue link=https://www.textualize.io]https://www.textualize.io"
52 )
53
54 message = Table.grid(padding=1)
55 message.add_column()
56 message.add_column(no_wrap=True)
57 message.add_row(sponsor_message)
58
59 message_panel = Panel(
60 Align.center(
61 Group("\n", Align.center(sponsor_message)),
62 vertical="middle",
63 ),
64 box=box.ROUNDED,
65 padding=(1, 2),
66 title="[b red]Thanks for trying out Rich!",
67 border_style="bright_blue",
68 )
69 return message_panel
70
71
72class Header:

Callers 1

fullscreen.pyFile · 0.85

Calls 6

PanelClass · 0.90
GroupClass · 0.90
gridMethod · 0.80
add_columnMethod · 0.80
add_rowMethod · 0.80
centerMethod · 0.80

Tested by

no test coverage detected