It is not just limited to pyui. We could use it in custom views for placement of various shapes and images. May be I will post an example later.
This example illustrates using placement of images and shapes in custom view using textlayout module. The textlayout module is generic enough to use in other types of applications. Here is the portion of code illustrating the layout of images and shapes.
Only one image or shape (element) is shown at a time and you can do a tap to change the current element.
Thanks guys. Looks maybe its a storm in a teacup 😬 Personally I would have thought just for consistency and memorising, that the designer and the code creation would use the same defaults. Ok, created ui.Button basically does.
Good to know about the button though. Explains why sometimes testing I get different results. Often getting the placements correct before populating them. Can you the impression that it is behaving erratically or that's something has changed when it's just the sequence in which you do things. Live and learn 👍