mirror of https://github.com/kivy/kivy.git
typos
This commit is contained in:
parent
d1dbb8cd47
commit
e89bc91d24
|
@ -15,16 +15,16 @@ Layouts are containers used to arrange widgets in a particular manner::
|
||||||
bottom) or `tb-lr` order.
|
bottom) or `tb-lr` order.
|
||||||
|
|
||||||
When you add a widget to a layout, the following properties are used to
|
When you add a widget to a layout, the following properties are used to
|
||||||
determine the widgets size and position, depending on the type of layout:
|
determine the widget's size and position, depending on the type of layout:
|
||||||
|
|
||||||
**size_hint**: defines the size of a widget in its parent space as a percentage.
|
**size_hint**: defines the size of a widget in its parent space as a percentage.
|
||||||
Values are restricted to the range 0.0 - 1.0 i.e. 0.01 = 1% and 1. = 100%.
|
Values are restricted to the range 0.0 - 1.0 i.e. 0.01 = 1% and 1. = 100%.
|
||||||
|
|
||||||
**pos_hint**: is used to place the widget relative to the parent.
|
**pos_hint**: is used to place the widget relative to the parent.
|
||||||
|
|
||||||
The **size_hint** and **pos_hint** are used to calculate widget's size and
|
The **size_hint** and **pos_hint** are used to calculate a widget's size and
|
||||||
position only if the value/s are not set to None. If you set these values to
|
position only if the value(s) are not set to ``None``. If you set these values to
|
||||||
None, the layout will not position/size the widget and you can specify the
|
``None``, the layout will not position/size the widget and you can specify the
|
||||||
values (x, y, width, height) directly in screen coordinates.
|
values (x, y, width, height) directly in screen coordinates.
|
||||||
|
|
||||||
For a detailed look at how you can arrange widgets using layouts, please refer
|
For a detailed look at how you can arrange widgets using layouts, please refer
|
||||||
|
|
Loading…
Reference in New Issue