Extends the Rich library with interactive layouts and tables, allowing seamless navigation and interaction via keyboard shortcuts
Project description
Rich Interactive
Extends the Rich library with interactive layouts and tables, allowing seamless navigation and interaction via keyboard shortcuts
Interactive Layouts
You can create interactive layouts that can be easily navigated, and you can switch the selection to any of the children.
console = Console(width=60, height=15)
layout = InteractiveLayout()
layout.split(
InteractiveLayout(name="header", size=5),
InteractiveLayout(name="main", size=5),
InteractiveLayout(name="footer", size=5),
)
layout.traverse()
for child in layout.children:
child.update(Panel(Text(child.name, style="yellow")))
print("Initial layout:")
print(layout)
layout.switch_selection()
print("After switching selection:")
print(layout)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rich_interactive-0.5.1.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for rich_interactive-0.5.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52c64cc5bbcad2779a2a68b1add0ba13ded6abd33e8886b5978e60536879340e |
|
MD5 | 2ce5a3b79582b074430174e90595315c |
|
BLAKE2b-256 | d7455f8f5cf4173de38fd1552b22f16f948e4ef6d5da1e0e3ae42fdda730cb3c |