This shows you the differences between two versions of the page.
getting_started:tut1 [2021/05/07 14:49] al4he6 created |
getting_started:tut1 [2021/08/11 16:49] (current) al4he6 Added note about pixels |
||
---|---|---|---|
Line 24: | Line 24: | ||
< | < | ||
txt.SetMargins(0.2, | txt.SetMargins(0.2, | ||
+ | </ | ||
+ | Or you can specify sizes in pixels, for example a margin on the left of 20 pixels | ||
+ | < | ||
+ | txt.SetMargins(20, | ||
</ | </ | ||
There are many other possibilities (setting widths and heights, padding, layouts within layouts).\\ | There are many other possibilities (setting widths and heights, padding, layouts within layouts).\\ | ||
See the documentation of Layouts and Controls. | See the documentation of Layouts and Controls. | ||