mirror of
https://github.com/Textualize/rich.git
synced 2025-08-04 18:18:22 +00:00
docs: fix typos and whitespace
This commit is contained in:
parent
2ba277ac54
commit
c3469772a4
14 changed files with 30 additions and 30 deletions
|
@ -99,7 +99,7 @@ This will set the upper portion to be exactly 10 rows, no matter the size of the
|
|||
Ratio
|
||||
-----
|
||||
|
||||
In addition to a fixed size, you can also make a flexible layout setting the ``ratio`` argument on the constructor or by assigning to the attribute. The ratio defines how much of the screen the layout should occupy in relation to other layouts. For example, lets reset the size and set the ratio of the upper layout to 2::
|
||||
In addition to a fixed size, you can also make a flexible layout setting the ``ratio`` argument on the constructor or by assigning to the attribute. The ratio defines how much of the screen the layout should occupy in relation to other layouts. For example, let's reset the size and set the ratio of the upper layout to 2::
|
||||
|
||||
layout["upper"].size = None
|
||||
layout["upper"].ratio = 2
|
||||
|
@ -124,7 +124,7 @@ The top layout is now invisible, and the "lower" layout will expand to fill the
|
|||
layout["upper"].visible = True
|
||||
print(layout)
|
||||
|
||||
You could use this to toggle parts of your interface based on your applications configuration.
|
||||
You could use this to toggle parts of your interface based on your application's configuration.
|
||||
|
||||
Tree
|
||||
----
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue