mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
remote test code
This commit is contained in:
@@ -378,17 +378,3 @@ class ScrollBarCorner(Widget):
|
||||
styles = self.parent.styles
|
||||
color = styles.scrollbar_corner_color
|
||||
return Blank(color)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
from rich import print
|
||||
from rich.console import Console
|
||||
|
||||
console = Console()
|
||||
scrollbar = ScrollBar()
|
||||
scrollbar.window_virtual_size = 100
|
||||
scrollbar.window_size = 10
|
||||
scrollbar.position = 95
|
||||
|
||||
style = Style.parse("magenta on #333333")
|
||||
console.print(scrollbar._render_bar(style), height=10)
|
||||
|
||||
Reference in New Issue
Block a user