August 2015
Intermediate to advanced
246 pages
4h 21m
English
There are situations when you need to go through the app's widget tree. This recipe will use a tap to add new buttons to the root widgets and double tap to print the children of the root widget in the console. Again, triple tap will clean the widgets of our app.
The code for this recipe is similar to the previous recipe, so you can refer to them and apply the same to this recipe.
For this recipe, follow the next steps:
<MyW>: Label: id: label1 pos: 200,200 text: 'Hello'
on_touch_down() method to add a button every time that a touch is performed.Read now
Unlock full access