August 2015
Intermediate to advanced
246 pages
4h 21m
English
Sometimes, it is quite tedious to establish each and every position for all the widgets in our app. There is a special kind of widget, the layouts widget, that makes things easy for us. In this recipe, we will review how to work with the size and position hints that allows us to organize widgets inside this new kind of widget.
A quick check of the recipe Designing with the Kv language in Chapter 1, Kivy and the Kv language could be important to go deeper in this recipe.
To complete the task, perform the following steps:
size_hint and pos_hint properties as follows:<MyW1>: Button: id: label1 size_hint: .2, .2 pos_hint: {'center_x':.5, 'center_y': ...
Read now
Unlock full access