clarify a little the metrics paragraph in guide2/widgets

This commit is contained in:
tshirtman 2012-12-29 18:48:31 +01:00
parent 6b8953cb99
commit 8e230904f9
1 changed files with 6 additions and 5 deletions

View File

@ -63,12 +63,13 @@ values to any of the pos attributes (x, y, left, top, center_x, center_y) to
have the widget positioned relatively to its parent.
Size and pos metrics
--------------------
Size and position metrics
-------------------------
Kivy default unit for lenght is the pixel, all size and pos are expressed
in it, but you can express them in other units, which is useful to achieve
better consistency accross devices.
Kivy default unit for lenght is the pixel, all sizes and positions are
expressed in it by default, but you can express them in other units, which is
useful to achieve better consistency accross devices (they get converted to the
size in pixel automatically).
The available units are `pt`, `mm`, `cm`, `in`, `dp` and `sp`, you can see
about their usage in the :mod:`~kivy.metrics` documentation.